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.";
18 res
.innerHTML
= "Test Failed. SelectionStart index = " + pass
.selectionStart
+ ". SelectionEnd index = " + pass
.selectionEnd
+ ".";
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>