 on root."
  },
];

function runTest() {

  async function testScrollAttrChange(testInfo, t) {
    testInfo.target.style.scrollBehavior = testInfo.behavior;

    await waitForCompositorCommit();

    let scrollendPromise = null;
    if (testInfo.target == document.scrollingElement) {
      targetDiv.addEventListener("scrollend", onInvalidScrollEnd);
      scrollendPromise = createScrollendPromiseForTarget(t, document, 700, true);
    } else {
      document.addEventListener("scrollend", onInvalidScrollEnd);