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

Side by Side Diff: LayoutTests/fast/html/details-mouse-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 1
2 <head> 2 <head>
3 <style> 3 <style>
4 body { 4 body {
5 margin: 0px; 5 margin: 0px;
6 } 6 }
7 div { 7 div {
8 width:200px; 8 width:200px;
9 height:80px; 9 height:80px;
10 } 10 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 clickElement(element); 59 clickElement(element);
60 }; 60 };
61 61
62 var runTests = function () { 62 var runTests = function () {
63 63
64 if (!window.testRunner || !window.eventSender) 64 if (!window.testRunner || !window.eventSender)
65 return; 65 return;
66 66
67 testRunner.dumpAsText(); 67 testRunner.dumpAsText();
68 68
69 // Mouse events only work after an initial layout
70 document.body.offsetLeft;
71
69 testElement(0); 72 testElement(0);
70 testElement(1); 73 testElement(1);
71 testElement(2); 74 testElement(2);
72 testElement(3); 75 testElement(3);
73 76
74 writeLog(error ? "FAIL" : "PASS"); 77 writeLog(error ? "FAIL" : "PASS");
75 } 78 }
76 79
77 </script> 80 </script>
78 81
(...skipping 15 matching lines...) Expand all
94 97
95 <div style="-webkit-writing-mode:vertical-rl;"> 98 <div style="-webkit-writing-mode:vertical-rl;">
96 <details id="details3"><input></details> 99 <details id="details3"><input></details>
97 </div> 100 </div>
98 101
99 <div id="results"> 102 <div id="results">
100 </div> 103 </div>
101 104
102 </body> 105 </body>
103 106
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698