OLD | NEW |
1 <html> | 1 <html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 | 5 |
6 function performUserEvents() { | 6 function performUserEvents() { |
7 if (window.eventSender) { | 7 if (window.eventSender) { |
| 8 // Mouse events only work after an initial layout |
| 9 document.body.offsetLeft; |
8 eventSender.mouseMoveTo(15, 15); | 10 eventSender.mouseMoveTo(15, 15); |
9 eventSender.mouseDown(); | 11 eventSender.mouseDown(); |
10 eventSender.mouseUp(); | 12 eventSender.mouseUp(); |
11 } | 13 } |
12 } | 14 } |
13 </script> | 15 </script> |
14 | 16 |
15 <body style="font-size: 32" onload="performUserEvents()"> | 17 <body style="font-size: 32" onload="performUserEvents()"> |
16 <a href="someErrantPage.html" | 18 <a href="someErrantPage.html" |
17 onclick="window.location='success200.html'; return false"> | 19 onclick="window.location='success200.html'; return false"> |
18 Click this link</a> | 20 Click this link</a> |
19 <br> | 21 <br> |
20 Test failed - This page uses javascript to implement the navigation to | 22 Test failed - This page uses javascript to implement the navigation to |
21 another page that happens when the user clicks a link. The key aspect | 23 another page that happens when the user clicks a link. The key aspect |
22 of this test is that this page should appear in the back/forward list, | 24 of this test is that this page should appear in the back/forward list, |
23 since it is a (simulated) user action that causes the navigation from | 25 since it is a (simulated) user action that causes the navigation from |
24 this page to occur (vs a timer that did the same thing, but not | 26 this page to occur (vs a timer that did the same thing, but not |
25 initiated by the user). | 27 initiated by the user). |
26 </body> | 28 </body> |
27 </html> | 29 </html> |
OLD | NEW |