2 <script src=
"../../resources/js-test.js"></script>
3 <div id=
"spanner"></div>
5 spanner
.style
.height
= "3000px";
8 if (window
.internals
) {
9 var styleCount
= internals
.updateStyleAndReturnAffectedElementCount();
10 var layoutCount
= internals
.needsLayoutCount();
11 // scrollTo should have synchronously updated style and layout
12 shouldBe("styleCount", "0");
13 shouldBe("layoutCount", "0");
15 shouldBe("window.scrollY", "1000");
17 spanner
.style
.height
= "2000px";
20 if (window
.internals
) {
21 var styleCount
= internals
.updateStyleAndReturnAffectedElementCount();
22 var layoutCount
= internals
.needsLayoutCount();
23 // scrollTo should not need to synchronously updated style and layout
24 shouldNotBe("styleCount", "0");
25 shouldNotBe("layoutCount", "0");
27 shouldBe("window.scrollY", "0");