OLD | NEW |
1 <html> | 1 <html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 { | 4 { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 function scrollEventFired() | 9 function scrollEventFired() |
10 { | 10 { |
11 document.getElementById('console').innerHTML = "Scrolled by JavaScript scrol
lTo(): PASS"; | 11 document.getElementById('console').innerHTML = "Scrolled by JavaScript scrol
lTo(): PASS"; |
12 | 12 |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.notifyDone(); | 14 testRunner.notifyDone(); |
15 } | 15 } |
16 | 16 |
17 function runTest() | 17 function runTest() |
18 { | 18 { |
19 window.frames[0].onscroll = scrollEventFired; | 19 window.frames[0].onscroll = scrollEventFired; |
20 window.frames[0].scrollTo(0, 50); | 20 window.frames[0].scrollTo(0, 50); |
21 } | 21 } |
22 </script> | 22 </script> |
23 <junk id="console"> | 23 <junk id="console"> |
24 <iframe onload="runTest();" src="resources/scrollable-iframe.html"> | 24 <iframe onload="runTest();" src="resources/scrollable-iframe.html"> |
25 </junk> | 25 </junk> |
26 </html> | 26 </html> |
27 | 27 |
OLD | NEW |