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

Side by Side Diff: LayoutTests/fast/html/details-remove-summary-1-and-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 <script> 1 <script>
2 2
3 var runTests = function () { 3 var runTests = function () {
4 document.getElementById("dt1").removeChild(document.getElementById("summary1 ")); 4 document.getElementById("dt1").removeChild(document.getElementById("summary1 "));
5 5
6 if (!window.testRunner || !window.eventSender) 6 if (!window.testRunner || !window.eventSender)
7 return; 7 return;
8 // Mouse events only work after an initial layout
9 document.body.offsetLeft;
8 eventSender.mouseMoveTo(2, 2); 10 eventSender.mouseMoveTo(2, 2);
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="margin: 0px" onload="runTests()"> 17 <body style="margin: 0px" onload="runTests()">
16 <details id="dt1"> 18 <details id="dt1">
17 <summary id="summary1">summary</summary> 19 <summary id="summary1">summary</summary>
18 </details> 20 </details>
19 </body> 21 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/details-mouse-click.html ('k') | LayoutTests/fast/html/details-remove-summary-2-and-click.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698