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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/gesture-click.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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../js/resources/js-test-pre.js"></script> 4 <script src="../../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body onload="runTest();"> 6 <body onload="runTest();">
7 <div id="gesture"> 7 <div id="gesture">
8 8
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="console"></div> 10 <div id="console"></div>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 div.addEventListener("mousemove", gestureEventCallback, false); 58 div.addEventListener("mousemove", gestureEventCallback, false);
59 document.addEventListener("keydown", quitKeyToEndTest, false); 59 document.addEventListener("keydown", quitKeyToEndTest, false);
60 60
61 if (window.testRunner) { 61 if (window.testRunner) {
62 testRunner.dumpAsText(); 62 testRunner.dumpAsText();
63 testRunner.waitUntilDone(); 63 testRunner.waitUntilDone();
64 } 64 }
65 65
66 if (window.eventSender) { 66 if (window.eventSender) {
67 description("This tests basic gesture callbacks."); 67 description("This tests basic gesture callbacks.");
68 // Mouse events only work after an initial layout
69 document.body.offsetLeft;
68 // A 'tap' gesture event should generate a sequence of mouse events. 70 // A 'tap' gesture event should generate a sequence of mouse events.
69 eventSender.gestureTap(10, 12); 71 eventSender.gestureTap(10, 12);
70 eventSender.leapForward(10); 72 eventSender.leapForward(10);
71 eventSender.keyDown(' '); 73 eventSender.keyDown(' ');
72 } else { 74 } else {
73 debug("This test requires DumpRenderTree. Tap on the blue rect to log." ) 75 debug("This test requires DumpRenderTree. Tap on the blue rect to log." )
74 } 76 }
75 } 77 }
76 </script> 78 </script>
77 </body> 79 </body>
78 </html> 80 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/touch/emulate-touch-events.html ('k') | LayoutTests/fast/events/touch/gesture/gesture-dblclick.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698