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

Side by Side Diff: LayoutTests/fast/events/dblclick-addEventListener.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 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test case for Bugzilla 7790</title> 3 <title>Test case for Bugzilla 7790</title>
4 <style> 4 <style>
5 .testarea 5 .testarea
6 { 6 {
7 background: red; 7 background: red;
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 color: white; 10 color: white;
(...skipping 10 matching lines...) Expand all
21 event.stopPropagation(); 21 event.stopPropagation();
22 event.preventDefault(); 22 event.preventDefault();
23 } 23 }
24 window.onload = function() 24 window.onload = function()
25 { 25 {
26 var elem = document.getElementById("click_area"); 26 var elem = document.getElementById("click_area");
27 elem.addEventListener('dblclick', handler, false); 27 elem.addEventListener('dblclick', handler, false);
28 28
29 if (window.testRunner) { 29 if (window.testRunner) {
30 testRunner.dumpAsText(); 30 testRunner.dumpAsText();
31 // Mouse events only work after an initial layout
32 document.body.offsetLeft;
33 eventSender.mouseMoveTo(50,50); 31 eventSender.mouseMoveTo(50,50);
34 eventSender.mouseDown(); 32 eventSender.mouseDown();
35 eventSender.mouseUp(); 33 eventSender.mouseUp();
36 eventSender.mouseDown(); 34 eventSender.mouseDown();
37 eventSender.mouseUp(); 35 eventSender.mouseUp();
38 } 36 }
39 } 37 }
40 </script> 38 </script>
41 </head> 39 </head>
42 <body> 40 <body>
43 <div id="click_area" class="testarea">FAILURE, no dblclick recieved</div> 41 <div id="click_area" class="testarea">FAILURE, no dblclick recieved</div>
44 <br> 42 <br>
45 <p>Double-click above to test.</p> 43 <p>Double-click above to test.</p>
46 </body> 44 </body>
47 </html> 45 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/clientXY-in-zoom-and-scroll.html ('k') | LayoutTests/fast/events/drop-with-file-paths.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698