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

Side by Side Diff: LayoutTests/fast/forms/select-empty-list.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 <head> 1 <head>
2 <script> 2 <script>
3 function test() 3 function test()
4 { 4 {
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 if (window.eventSender) { 7 if (window.eventSender) {
8 // Mouse events only work after an initial layout
9 document.body.offsetLeft;
8 eventSender.mouseMoveTo(20, 70); 10 eventSender.mouseMoveTo(20, 70);
9 eventSender.mouseDown(); 11 eventSender.mouseDown();
10 eventSender.mouseUp(); 12 eventSender.mouseUp();
11 } 13 }
12 } 14 }
13 15
14 function selectClicked() { 16 function selectClicked() {
15 var message = "Passed"; 17 var message = "Passed";
16 var paragraph = document.createElement('p'); 18 var paragraph = document.createElement('p');
17 paragraph.appendChild(document.createTextNode(message)); 19 paragraph.appendChild(document.createTextNode(message));
18 document.getElementById('console').appendChild(paragraph); 20 document.getElementById('console').appendChild(paragraph);
19 } 21 }
20 </script> 22 </script>
21 </head> 23 </head>
22 <body onload="test();"> 24 <body onload="test();">
23 <p>This tests clicking on an empty select. If successful, the console message sa ys Passed. See bug 11765. 25 <p>This tests clicking on an empty select. If successful, the console message sa ys Passed. See bug 11765.
24 <form> 26 <form>
25 <select onclick="selectClicked()" style="width:100px;height:100px;" id="select" size=2> 27 <select onclick="selectClicked()" style="width:100px;height:100px;" id="select" size=2>
26 </select> 28 </select>
27 </form> 29 </form>
28 <p id="console"></p> 30 <p id="console"></p>
29 </body> 31 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/password-doubleclick-selection.html ('k') | LayoutTests/fast/frames/frame-deep-nested-resize.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698