Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-cell-contents-win.html
blobfa8b3f3e5ac33a855011700a09ef88555fcdf2bb
1 <p>This tests for a crasher when deleting contents of a table cell. <a href="radr://problem/4845371">&lt;radr://problem/4845371&gt;</a></p>
2 <div id="div" contenteditable="true"><table><tr><td>foo <a href="http://www.google.com/">bar</a></td><td>baz</td></tr></table></div>
4 <script src="../editing.js"></script>
5 <script>
6 if (window.internals)
7 internals.settings.setEditingBehavior("win");
9 runDumpAsTextEditingTest(true);
11 function editingTest() {
12 var div = document.getElementById("div");
13 var sel = window.getSelection();
15 sel.collapse(div, 0);
16 moveSelectionForwardByCharacterCommand();
17 extendSelectionForwardByWordCommand();
18 extendSelectionForwardByWordCommand();
19 extendSelectionBackwardByCharacterCommand();
20 deleteCommand();
22 </script>