6 if (window
.testRunner
) {
7 eventSender
.mouseMoveTo(25, 55);
8 eventSender
.mouseDown();
13 function prevDefaultForEvent( evt
) {
14 log(evt
.type
+ " on target " + evt
.target
);
19 document
.getElementById('result').innerHTML
= document
.getElementById('result').innerHTML
+ "<br>" + text
;
23 <body onload=
"test()">
25 This tests that preventDefault called onmousedown will prevent a caret from being placed in the text field.
26 <input id=
"tf1" style=
"-khtml-appearance: textfield; position: absolute; top: 50; left: 10;" onmousedown=
"prevDefaultForEvent(event)" value=
"No caret should be here"></input>
27 <div id=
"result" style=
"position: absolute; top: 70; left: 10;">