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

Side by Side Diff: LayoutTests/fast/forms/select-empty-list.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 <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;
10 eventSender.mouseMoveTo(20, 70); 8 eventSender.mouseMoveTo(20, 70);
11 eventSender.mouseDown(); 9 eventSender.mouseDown();
12 eventSender.mouseUp(); 10 eventSender.mouseUp();
13 } 11 }
14 } 12 }
15 13
16 function selectClicked() { 14 function selectClicked() {
17 var message = "Passed"; 15 var message = "Passed";
18 var paragraph = document.createElement('p'); 16 var paragraph = document.createElement('p');
19 paragraph.appendChild(document.createTextNode(message)); 17 paragraph.appendChild(document.createTextNode(message));
20 document.getElementById('console').appendChild(paragraph); 18 document.getElementById('console').appendChild(paragraph);
21 } 19 }
22 </script> 20 </script>
23 </head> 21 </head>
24 <body onload="test();"> 22 <body onload="test();">
25 <p>This tests clicking on an empty select. If successful, the console message sa ys Passed. See bug 11765. 23 <p>This tests clicking on an empty select. If successful, the console message sa ys Passed. See bug 11765.
26 <form> 24 <form>
27 <select onclick="selectClicked()" style="width:100px;height:100px;" id="select" size=2> 25 <select onclick="selectClicked()" style="width:100px;height:100px;" id="select" size=2>
28 </select> 26 </select>
29 </form> 27 </form>
30 <p id="console"></p> 28 <p id="console"></p>
31 </body> 29 </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