| <html> |
| <head> |
| |
| <style> |
| .editing { |
| font-size: 24px; |
| width: 600px; |
| } |
| </style> |
| <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></script> |
| |
| <script> |
| |
| function editingTest() { |
| if (window.layoutTestController) { |
| |
| try { |
| // test for 4570218 by using double deleteToEndOfParagraph |
| textInputController.doCommand("deleteToEndOfParagraph:"); |
| textInputController.doCommand("deleteToEndOfParagraph:"); |
| |
| } catch (ex) { |
| document.write("Exception: " + ex.description); |
| } |
| } else { |
| document.write("(cannot run interactively)"); |
| } |
| } |
| |
| </script> |
| |
| <title>Editing Test</title> |
| </head> |
| <body contenteditable id="root"> |
| <div id="test" class="editing">one two three</div><div>four five six</div> |
| <script> |
| runEditingTest(); |
| </script> |
| |
| </body> |
| </html> |