OLD | NEW |
| (Empty) |
1 <p>This tests for a crasher when deleting contents of a table cell. <a href="rad
r://problem/4845371"><radr://problem/4845371></a></p> | |
2 <div id="div" contenteditable="true"><table><tr><td>foo <a href="http://www.goog
le.com/">bar</a></td><td>baz</td></tr></table></div> | |
3 | |
4 <script src="../editing.js"></script> | |
5 <script> | |
6 runDumpAsTextEditingTest(true); | |
7 | |
8 function editingTest() { | |
9 var div = document.getElementById("div"); | |
10 var sel = window.getSelection(); | |
11 | |
12 sel.setPosition(div, 0); | |
13 moveSelectionForwardByCharacterCommand(); | |
14 extendSelectionForwardByWordCommand(); | |
15 extendSelectionForwardByWordCommand(); | |
16 deleteCommand(); | |
17 } | |
18 </script> | |
OLD | NEW |