Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: LayoutTests/http/tests/navigation/resources/javascriptlink.html

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix review comment Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698