Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / password-doubleclick-selection.html
blobd4e8d4f3f1aa301c6fcee495272c7a110430a814
1 <html>
2 <head>
3 <script>
4 function test() {
5 var pass = document.getElementById('tf');
6 var res = document.getElementById('res');
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 eventSender.mouseMoveTo(45, 25);
11 eventSender.mouseDown();
12 eventSender.mouseUp();
13 eventSender.mouseDown();
14 eventSender.mouseUp();
15 if (pass.selectionStart == 0 && pass.selectionEnd == 11)
16 res.innerHTML = "Test Passed.";
17 else
18 res.innerHTML = "Test Failed. SelectionStart index = " + pass.selectionStart + ". SelectionEnd index = " + pass.selectionEnd + ".";
21 </script>
22 </head>
23 <body onload="test()">
24 <input type="password" value="123 456 789" id="tf"></input>
25 This tests that double clicking in a password field will not expose word boundaries.<br>
26 <br><div id="res"></div>
27 </body>
28 </html>