ion runAll() {
  for (var i = 1; i <= 7; i++)
    runCase("layout" + i, true);
  for (var i = 1; i <= 5; i++)
    runCase("nonLayout" + i, false);
}

test(() => {
  document.querySelector("#maybeScroller").className = "";
  scroller = document.scrollingElement;
  runAll();
}, "Ancestor changes in document scroller.");

test(() => {
  scroller = document.querySelector("#maybeScroller");
  scroller.className = "scroller";
  runAll();
}, "Ancestor changes in scrollable <div>.");

</script>
