| OLD | NEW |
| 1 <p>This tests deleting a selection that ends just before a space. There was a bu
g where it would be treated like a smart delete (the space would be incorrectly
removed). To run it outside of DRT, you must delete manually. Press delete and
you should see "Th is a test".</p> | 1 <p>This tests deleting a selection that ends just before a space. There was a bu
g where it would be treated like a smart delete (the space would be incorrectly
removed). To run it outside of DRT, you must delete manually. Press delete and
you should see "Th is a test".</p> |
| 2 <div id="div" contenteditable="true">This is a test.</div> | 2 <div id="div" contenteditable="true">This is a test.</div> |
| 3 | 3 |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 window.testRunner.dumpAsText(); | 6 window.testRunner.dumpAsText(); |
| 7 | 7 |
| 8 text = document.getElementById("div").firstChild; | 8 text = document.getElementById("div").firstChild; |
| 9 window.getSelection().setBaseAndExtent(text, 2, text, 4); | 9 window.getSelection().setBaseAndExtent(text, 2, text, 4); |
| 10 if (window.eventSender) | 10 if (window.eventSender) |
| 11 eventSender.keyDown("delete"); | 11 eventSender.keyDown("Delete"); |
| 12 </script> | 12 </script> |
| OLD | NEW |