4 <script src=
"../resources/js-test.js"></script>
9 border:
1px solid #
000;
22 <div id=
"container" class=
"container">
23 <button class=
"bigbutton">One
</button>
24 <button class=
"bigbutton">Two
</button>
25 <button class=
"bigbutton">Three
</button>
28 <div id=
"console"></div>
31 description("This test ensures that scrolling the window sends a notification.");
32 window
.jsTestIsAsync
= true;
34 if (window
.testRunner
&& window
.accessibilityController
) {
35 testRunner
.dumpAsText();
37 var container
= document
.getElementById('container');
39 accessibilityController
.addNotificationListener(function (target
, notification
) {
40 if (target
.role
== 'AXRole: AXDiv') {
41 debug('Got notification on container div');
42 shouldBe("container.scrollTop", "500");
43 accessibilityController
.removeNotificationListener();
48 window
.setTimeout(function() {
49 container
.scrollTop
= 500;