Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-cell-contents-mac.html
blobfb88ac3c3bf1c1c0b2e59dad3ca0de89b9dcebdf
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("mac");
8 window.getSelection().removeAllRanges();
11 runDumpAsTextEditingTest(true);
13 function editingTest() {
14 var div = document.getElementById("div");
15 var sel = window.getSelection();
17 sel.collapse(div, 0);
18 moveSelectionForwardByCharacterCommand();
19 extendSelectionForwardByWordCommand();
20 extendSelectionForwardByWordCommand();
21 deleteCommand();
23 </script>