git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25230 268f45cc-cd09-0410...
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Aug 2007 01:23:13 +0000 (01:23 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Aug 2007 01:23:13 +0000 (01:23 +0000)
LayoutTests/editing/execCommand/5432254-1.html [new file with mode: 0644]
LayoutTests/editing/execCommand/5432254-2.html [new file with mode: 0644]

diff --git a/LayoutTests/editing/execCommand/5432254-1.html b/LayoutTests/editing/execCommand/5432254-1.html
new file mode 100644 (file)
index 0000000..d1e2452
--- /dev/null
@@ -0,0 +1,11 @@
+<p>This tests for a deletion bug.  Only the second paragraph inside the table should be deleted.  You should see a table with 'foo' in it below.</p>
+<div contenteditable="true"><table id="table" border="1"><tr><td id="td"><div>foo</div>bar</td></tr></table></div>
+
+<script>
+table = document.getElementById("table");
+td = document.getElementById("td");
+text = td.firstChild.nextSibling;
+s = window.getSelection();
+s.setBaseAndExtent(text, 0, table, 1);
+document.execCommand("Delete");
+</script>
diff --git a/LayoutTests/editing/execCommand/5432254-2.html b/LayoutTests/editing/execCommand/5432254-2.html
new file mode 100644 (file)
index 0000000..ce2a786
--- /dev/null
@@ -0,0 +1,12 @@
+<p>This tests for a deletion bug.  The paragraph inside the table should be in a list, and the test shouldn't hang.</p>
+<div id="div" contenteditable="true"><div><table id="table" border="1"><tr><td id="td">foo</td></tr></table></div>
+
+<br id="br"></div>
+
+<script>
+td = document.getElementById("td");
+br = document.getElementById("br");
+s = window.getSelection();
+s.setBaseAndExtent(td, 0, br, 0);
+document.execCommand("InsertUnorderedList");
+</script>