5 <script src=
"../../resources/js-test.js"></script>
7 window
.jsTestIsAsync
= true;
11 frame
= document
.getElementById('frame');
12 var doc
= frame
.contentDocument
.open();
13 var htmlString
= "Lots of text</br>Lots of text</br> \
14 Lots of text</br>Lots of text</br> \
15 Lots of text</br>Lots of text</br> \
16 Lots of text</br>Lots of text</br> \
17 Lots of text</br>Lots of text</br> \
18 Lots of text</br>Lots of text</br> \
19 Lots of text</br>Lots of text</br> \
20 Lots of text</br>Lots of text</br> \
21 Lots of text</br>Lots of text</br> \
22 Lots of text</br>Lots of text</br> \
23 Lots of text</br>Lots of text</br> \
24 Lots of text</br>Lots of text</br> \
25 Lots of text</br>Lots of text</br> \
26 Lots of text</br>Lots of text</br> \
27 Lots of text</br>Lots of text</br> \
28 Lots of text</br>Lots of text</br> \
29 Lots of text</br>Lots of text</br> \
30 Lots of text</br>Lots of text</br> \
31 Lots of text</br>Lots of text</br> \
32 Lots of text</br>Lots of text</br> \
33 Lots of text</br>Lots of text</br> \
34 Lots of text</br>Lots of text</br> \
35 Lots of text</br>Lots of text</br> \
36 Lots of text</br>Lots of text</br> \
37 Lots of text</br>Lots of text</br> \
38 Lots of text</br>Lots of text</br> \
39 Lots of text</br>Lots of text</br> \
40 Lots of text</br>Lots of text</br> \
41 Lots of text</br>Lots of text</br> \
42 Lots of text</br>Lots of text</br> \
43 Lots of text</br>Lots of text</br> \
44 Lots of text</br>Lots of text</br> \
45 Lots of text</br>Lots of text</br> \
46 Lots of text</br>Lots of text</br> \
47 Lots of text</br>Lots of text</br> \
48 Lots of text</br>Lots of text</br> \
49 Lots of text</br>Lots of text</br> \
50 Lots of text</br>Lots of text</br> \
51 Lots of text</br>Lots of text</br> \
52 Lots of text</br>Lots of text</br> \
53 Lots of text</br>Lots of text</br> \
54 Lots of text</br>Lots of text</br> \
55 Lots of text</br>Lots of text</br> \
56 Lots of text</br>Lots of text</br> \
57 Lots of text</br>Lots of text</br> \
58 Lots of text</br>Lots of text</br> \
59 Lots of text</br>Lots of text</br> \
60 Lots of text</br>Lots of text</br> \
61 Lots of text</br>Lots of text</br> \
62 Lots of text</br>Lots of text</br> \
63 Lots of text</br>Lots of text</br> \
64 Lots of text</br>Lots of text</br> \
65 Lots of text</br>Lots of text</br> ";
67 doc
.write(htmlString
);
69 frame
.contentDocument
.body
.style
.height
= "2000px";
71 if (window
.eventSender
) {
72 var xPoint
= frame
.scrollLeft
+ 100;
73 var yPoint
= frame
.scrollTop
+ 100;
74 eventSender
.dragMode
= false;
75 eventSender
.mouseMoveTo(xPoint
, yPoint
);
76 eventSender
.mouseDown();
77 eventSender
.mouseMoveTo(xPoint
, frame
.offsetHeight
+ 100);
78 setTimeout(testAutoScroll
, 1500);
79 eventSender
.keyDown('a');
81 debug("Test manually that scrolling does not stop if we press a key while autoscroll is happening.");
85 function testAutoScroll() {
86 shouldBe('frame.contentDocument.scrollingElement.scrollTop + frame.clientHeight', 'frame.contentDocument.scrollingElement.scrollHeight');
90 successfullyParsed
= true;
93 <body onload=
"test()">
94 <iframe id=
"frame" style=
"height: 400px;" frameborder=
"0"></iframe>
95 <div id=
"console"></div>