OLD | NEW |
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> | 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> | 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 | 3 |
4 <script src="../editing.js"></script> | 4 <script src="../editing.js"></script> |
5 <script> | 5 <script> |
| 6 if (window.internals) |
| 7 internals.settings.setEditingBehavior("win"); |
| 8 |
6 runDumpAsTextEditingTest(true); | 9 runDumpAsTextEditingTest(true); |
7 | 10 |
8 function editingTest() { | 11 function editingTest() { |
9 var div = document.getElementById("div"); | 12 var div = document.getElementById("div"); |
10 var sel = window.getSelection(); | 13 var sel = window.getSelection(); |
11 | 14 |
12 sel.setPosition(div, 0); | 15 sel.setPosition(div, 0); |
13 moveSelectionForwardByCharacterCommand(); | 16 moveSelectionForwardByCharacterCommand(); |
14 extendSelectionForwardByWordCommand(); | 17 extendSelectionForwardByWordCommand(); |
15 extendSelectionForwardByWordCommand(); | 18 extendSelectionForwardByWordCommand(); |
| 19 extendSelectionBackwardByCharacterCommand(); |
16 deleteCommand(); | 20 deleteCommand(); |
17 } | 21 } |
18 </script> | 22 </script> |
OLD | NEW |