| var ta = document.getElementById('ta') |
| var res = document.getElementById('res'); |
| // Send caret to bottom of textarea |
| ta.setSelectionRange(ta.value.length, ta.value.length); |
| if (window.eventSender) { |
| eventSender.mouseMoveTo(90, 20); |
| if (ta.selectionEnd == 17) |
| res.innerHTML = "Test Succeeded"; |
| res.innerHTML = "Test Failed: caret is at " + ta.selectionEnd; |
| res.innerHTML = "Test can't run without event sender (part of DumpRenderTree). " |
| + "To test manually, click at the middle of the line marked 9 and check that the caret appears after the 9."; |