13 background-color: blue;
17 <script src=
"../../resources/js-test.js"></script>
19 <div id=
"content"></div>
21 <div id=
"console"></div>
25 element
= document
.getElementById("container");
31 internals
.settings
.setScrollAnimatorEnabled(true);
33 element
.addEventListener("scroll", onElementScroll
);
35 testRunner
.layoutAndPaintAsyncThen(function() {
36 // Give the container focus.
37 eventSender
.mouseMoveTo(100, 100);
38 eventSender
.mouseDown();
39 eventSender
.mouseUp();
41 eventSender
.keyDown('end');
45 function onElementScroll() {
46 if (prevScrollTop
=== undefined) {
47 shouldNotBe("element.scrollTop",
48 "element.scrollHeight - element.clientHeight");
49 shouldBeGreaterThan("element.scrollTop", "0");
50 prevScrollTop
= element
.scrollTop
;
52 shouldBeGreaterThan("element.scrollTop", "prevScrollTop");
57 description("Tests that overflow scrolls are animated.");
59 if (window
.eventSender
)
62 debug("FAIL: This test requires window.eventSender.");