3 <script src=
"../../resources/js-test.js"></script>
15 targetDiv
= document
.getElementById('target');
18 if (window
.testRunner
) {
19 // Move cursor to the end of line.
20 eventSender
.keyDown("end", []);
22 eventSender
.keyDown('E');
23 eventSender
.keyDown('S');
24 eventSender
.keyDown('T');
25 shouldBeEqualToString("targetDiv.innerText", "TEST");
27 eventSender
.keyDown("backspace", []);
28 eventSender
.keyDown("backspace", []);
29 eventSender
.keyDown("backspace", []);
30 eventSender
.keyDown("backspace", []);
31 shouldBeEmptyString("targetDiv.innerText");
33 eventSender
.keyDown('T');
34 eventSender
.keyDown('E');
35 eventSender
.keyDown('S');
36 eventSender
.keyDown('T');
37 shouldBeEqualToString("targetDiv.innerText", "TEST");
43 <body onload=
"test()">
44 <div id=
"target" contentEditable
>T
</div>