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

Side by Side Diff: LayoutTests/fast/forms/password-doubleclick-selection.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 <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;
10 eventSender.mouseMoveTo(45, 25); 12 eventSender.mouseMoveTo(45, 25);
11 eventSender.mouseDown(); 13 eventSender.mouseDown();
12 eventSender.mouseUp(); 14 eventSender.mouseUp();
13 eventSender.mouseDown(); 15 eventSender.mouseDown();
14 eventSender.mouseUp(); 16 eventSender.mouseUp();
15 if (pass.selectionStart == 0 && pass.selectionEnd == 11) 17 if (pass.selectionStart == 0 && pass.selectionEnd == 11)
16 res.innerHTML = "Test Passed."; 18 res.innerHTML = "Test Passed.";
17 else 19 else
18 res.innerHTML = "Test Failed. SelectionStart index = " + pass.s electionStart + ". SelectionEnd index = " + pass.selectionEnd + "."; 20 res.innerHTML = "Test Failed. SelectionStart index = " + pass.s electionStart + ". SelectionEnd index = " + pass.selectionEnd + ".";
19 } 21 }
20 } 22 }
21 </script> 23 </script>
22 </head> 24 </head>
23 <body onload="test()"> 25 <body onload="test()">
24 <input type="password" value="123 456 789" id="tf"></input> 26 <input type="password" value="123 456 789" id="tf"></input>
25 This tests that double clicking in a password field will not expose word bou ndaries.<br> 27 This tests that double clicking in a password field will not expose word bou ndaries.<br>
26 <br><div id="res"></div> 28 <br><div id="res"></div>
27 </body> 29 </body>
28 </html> 30 </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