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