OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 <script> | 6 <script> |
7 window.jsTestIsAsync = true; | 7 window.jsTestIsAsync = true; |
8 | 8 |
9 var frame; | 9 var frame; |
10 function test() { | 10 function test() { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 eventSender.mouseDown(); | 76 eventSender.mouseDown(); |
77 eventSender.mouseMoveTo(xPoint, frame.offsetHeight + 100); | 77 eventSender.mouseMoveTo(xPoint, frame.offsetHeight + 100); |
78 setTimeout(testAutoScroll, 1500); | 78 setTimeout(testAutoScroll, 1500); |
79 eventSender.keyDown('a'); | 79 eventSender.keyDown('a'); |
80 } else { | 80 } else { |
81 debug("Test manually that scrolling does not stop if we press a key whil
e autoscroll is happening."); | 81 debug("Test manually that scrolling does not stop if we press a key whil
e autoscroll is happening."); |
82 } | 82 } |
83 } | 83 } |
84 | 84 |
85 function testAutoScroll() { | 85 function testAutoScroll() { |
86 shouldBe('frame.contentDocument.body.scrollTop + frame.clientHeight', 'frame
.contentDocument.body.scrollHeight'); | 86 shouldBe('frame.contentDocument.scrollingElement.scrollTop + frame.clientHei
ght', 'frame.contentDocument.scrollingElement.scrollHeight'); |
87 finishJSTest(); | 87 finishJSTest(); |
88 } | 88 } |
89 | 89 |
90 successfullyParsed = true; | 90 successfullyParsed = true; |
91 </script> | 91 </script> |
92 </head> | 92 </head> |
93 <body onload="test()"> | 93 <body onload="test()"> |
94 <iframe id="frame" style="height: 400px;" frameborder="0"></iframe> | 94 <iframe id="frame" style="height: 400px;" frameborder="0"></iframe> |
95 <div id="console"></div> | 95 <div id="console"></div> |
96 </body> | 96 </body> |
97 </html> | 97 </html> |
OLD | NEW |