6 testRunner
.dumpAsText();
7 var ta
= document
.getElementById('ta')
8 var res
= document
.getElementById('res');
10 // Send caret to bottom of textarea
12 ta
.setSelectionRange(ta
.value
.length
, ta
.value
.length
);
17 if (window
.eventSender
) {
18 eventSender
.mouseMoveTo(90, 20);
19 eventSender
.mouseDown();
20 eventSender
.mouseUp();
21 if (ta
.selectionEnd
== 17)
22 res
.innerHTML
= "Test Succeeded";
24 res
.innerHTML
= "Test Failed: caret is at " + ta
.selectionEnd
;
26 res
.innerHTML
= "Test can't run without event sender (part of DumpRenderTree). "
27 + "To test manually, click at the middle of the line marked 9 and check that the caret appears after the 9.";
32 <body onload=
"test()">