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

Side by Side Diff: LayoutTests/fast/forms/password-doubleclick-selection.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 <script> 3 <script>
4 function test() { 4 function test() {
5 var pass = document.getElementById('tf'); 5 var pass = document.getElementById('tf');
6 var res = document.getElementById('res'); 6 var res = document.getElementById('res');
7 7
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 // Mouse events only work after an initial layout
11 document.body.offsetLeft;
12 eventSender.mouseMoveTo(45, 25); 10 eventSender.mouseMoveTo(45, 25);
13 eventSender.mouseDown(); 11 eventSender.mouseDown();
14 eventSender.mouseUp(); 12 eventSender.mouseUp();
15 eventSender.mouseDown(); 13 eventSender.mouseDown();
16 eventSender.mouseUp(); 14 eventSender.mouseUp();
17 if (pass.selectionStart == 0 && pass.selectionEnd == 11) 15 if (pass.selectionStart == 0 && pass.selectionEnd == 11)
18 res.innerHTML = "Test Passed."; 16 res.innerHTML = "Test Passed.";
19 else 17 else
20 res.innerHTML = "Test Failed. SelectionStart index = " + pass.s electionStart + ". SelectionEnd index = " + pass.selectionEnd + "."; 18 res.innerHTML = "Test Failed. SelectionStart index = " + pass.s electionStart + ". SelectionEnd index = " + pass.selectionEnd + ".";
21 } 19 }
22 } 20 }
23 </script> 21 </script>
24 </head> 22 </head>
25 <body onload="test()"> 23 <body onload="test()">
26 <input type="password" value="123 456 789" id="tf"></input> 24 <input type="password" value="123 456 789" id="tf"></input>
27 This tests that double clicking in a password field will not expose word bou ndaries.<br> 25 This tests that double clicking in a password field will not expose word bou ndaries.<br>
28 <br><div id="res"></div> 26 <br><div id="res"></div>
29 </body> 27 </body>
30 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/option-mouseevents.html ('k') | LayoutTests/fast/forms/select-empty-list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698