OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | 3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
4 <script> | 4 <script> |
5 function runTest() | 5 function runTest() |
6 { | 6 { |
7 // Turn off smooth scrolling to prevent multiple scroll events from | 7 // Turn off smooth scrolling to prevent multiple scroll events from |
8 // being triggered. The iframe loaded below expects a single scroll | 8 // being triggered. The iframe loaded below expects a single scroll |
9 // event, after which it runs the repaint test. | 9 // event, after which it runs the repaint test. |
10 internals.settings.setScrollAnimatorEnabled(false); | 10 internals.settings.setScrollAnimatorEnabled(false); |
11 | 11 |
12 frames[0].focus(); | 12 frames[0].focus(); |
13 if (window.eventSender) { | 13 if (window.eventSender) { |
14 window.eventSender.keyDown("PageDown"); | 14 window.eventSender.keyDown("PageDown"); |
15 } | 15 } |
16 } | 16 } |
17 </script> | 17 </script> |
18 </head> | 18 </head> |
19 <body onload="runTest()"> | 19 <body onload="runTest()"> |
20 If running this test manually put focus inside the iframe and hit 'page down
'. | 20 If running this test manually put focus inside the iframe and hit 'page down
'. |
21 <iframe style="width:500px; height:500px" src="resources/fixed-move-after-ke
yboard-scroll-iframe.html"></iframe> | 21 <iframe style="width:500px; height:500px" src="resources/fixed-move-after-ke
yboard-scroll-iframe.html"></iframe> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |