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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/gesture-click.html

Issue 15508003: Revert "Don't force layout for mouse event hit tests" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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;
70 // A 'tap' gesture event should generate a sequence of mouse events. 68 // A 'tap' gesture event should generate a sequence of mouse events.
71 eventSender.gestureTap(10, 12); 69 eventSender.gestureTap(10, 12);
72 eventSender.leapForward(10); 70 eventSender.leapForward(10);
73 eventSender.keyDown(' '); 71 eventSender.keyDown(' ');
74 } else { 72 } else {
75 debug("This test requires DumpRenderTree. Tap on the blue rect to log." ) 73 debug("This test requires DumpRenderTree. Tap on the blue rect to log." )
76 } 74 }
77 } 75 }
78 </script> 76 </script>
79 </body> 77 </body>
80 </html> 78 </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