Diff
Modified: trunk/LayoutTests/ChangeLog (89882 => 89883)
--- trunk/LayoutTests/ChangeLog 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/ChangeLog 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,3 +1,32 @@
+2011-06-27 Wyatt Carss <[email protected]>
+
+ Reviewed by Ryosuke Niwa.
+
+ convert editing/deleting/5156801-2.html to dumpAsText and rename
+ https://bugs.webkit.org/show_bug.cgi?id=63359
+
+ converted editing/deleting/5156801-2.html to dump-as-markup test, with
+ new results. Renamed 5156801.html to delete-node-after-DOMNodeRemoved,
+ and 5156801-2.html to delete-table-cell-contents.html; they were only
+ noticeably related by their rdar number, which is now included in each.
+
+ * editing/deleting/5156801.html: Removed.
+ * editing/deleting/5156801-expected.txt: Removed.
+ * editing/deleting/5156801-2.html: Removed.
+ * editing/deleting/delete-node-after-DOMNodeRemoved.html: Added.
+ * editing/deleting/delete-node-after-DOMNodeRemoved-expected.txt: Added.
+ * editing/deleting/delete-table-cell-contents.html: Added.
+ * editing/deleting/delete-table-cell-contents-expected.txt: Added.
+ * platform/chromium-linux/editing/deleting/5156801-2-expected.png: Removed.
+ * platform/chromium-win/editing/deleting/5156801-2-expected.png: Removed.
+ * platform/chromium-win/editing/deleting/5156801-2-expected.txt: Removed.
+ * platform/gtk/editing/deleting/5156801-2-expected.txt: Removed.
+ * platform/mac-leopard/editing/deleting/5156801-2-expected.png: Removed.
+ * platform/mac/editing/deleting/5156801-2-expected.png: Removed.
+ * platform/mac/editing/deleting/5156801-2-expected.txt: Removed.
+ * platform/qt/editing/deleting/5156801-2-expected.png: Removed.
+ * platform/qt/editing/deleting/5156801-2-expected.txt: Removed.
+
2011-06-27 Levi Weintraub <[email protected]>
Unreviewed.
Deleted: trunk/LayoutTests/editing/deleting/5156801-2.html (89882 => 89883)
--- trunk/LayoutTests/editing/deleting/5156801-2.html 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/editing/deleting/5156801-2.html 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,18 +0,0 @@
-<body>
-<p>This tests for a crash when deleting the contents of a table cell. You should just see 'Cached' below.</p>
-<div contenteditable="true"><table id="table" border=0 cellpadding=0 cellspacing=0><tr><td><br><a href="" href=""
-</div>
-<script>
-s = window.getSelection();
-table = document.getElementById("table");
-s.setPosition(table, table.childNodes.length);
-s.modify("move", "backward", "character");
-document.execCommand("Delete");
-document.execCommand("Delete");
-document.execCommand("Delete");
-document.execCommand("Delete");
-document.execCommand("Delete");
-document.execCommand("Delete");
-document.execCommand("Delete");
-</script>
-</body>
Deleted: trunk/LayoutTests/editing/deleting/5156801-expected.txt (89882 => 89883)
--- trunk/LayoutTests/editing/deleting/5156801-expected.txt 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/editing/deleting/5156801-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,6 +0,0 @@
-This tests for a bug where delete would crash if a node just after the selection to delete is removed in a DOMNodeRemoved event handler for the last node in the selection to delete.
-
-foo
-foo
-
-PASS
Deleted: trunk/LayoutTests/editing/deleting/5156801.html (89882 => 89883)
--- trunk/LayoutTests/editing/deleting/5156801.html 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/editing/deleting/5156801.html 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,30 +0,0 @@
-<p>This tests for a bug where delete would crash if a node just after the selection to delete is removed in a DOMNodeRemoved event handler for the last node in the selection to delete.</p>
-<div id="div" contenteditable="true">foo<span id="foo">x</span><span id="removeme">y</span></div>
-<p id="console"></p>
-
-<script>
-
-if (window.layoutTestController)
- window.layoutTestController.dumpAsText();
-
-function log(message) {
- var console = document.getElementById("console");
- var text = document.createTextNode(message);
- console.appendChild(text);
-}
-
-function removeHandler() {
- var removeme = document.getElementById("removeme");
- removeme.parentNode.removeChild(removeme);
-}
-
-document.getElementById("foo").addEventListener("DOMNodeRemoved", removeHandler);
-var sel = window.getSelection();
-sel.setBaseAndExtent( document.getElementById('foo'), 0, document.getElementById('foo'), 1 );
-document.execCommand("Delete");
-
-log(document.getElementById('div').innerHTML);
-
-</script>
-
-PASS
Copied: trunk/LayoutTests/editing/deleting/delete-node-after-DOMNodeRemoved-expected.txt (from rev 89882, trunk/LayoutTests/editing/deleting/5156801-expected.txt) (0 => 89883)
--- trunk/LayoutTests/editing/deleting/delete-node-after-DOMNodeRemoved-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/deleting/delete-node-after-DOMNodeRemoved-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -0,0 +1,6 @@
+This tests for a bug where delete would crash if a node just after the selection to delete is removed in a DOMNodeRemoved event handler for the last node in the selection to delete. <rdar://problem/5156801>
+
+foo
+foo
+
+PASS
Copied: trunk/LayoutTests/editing/deleting/delete-node-after-DOMNodeRemoved.html (from rev 89882, trunk/LayoutTests/editing/deleting/5156801.html) (0 => 89883)
--- trunk/LayoutTests/editing/deleting/delete-node-after-DOMNodeRemoved.html (rev 0)
+++ trunk/LayoutTests/editing/deleting/delete-node-after-DOMNodeRemoved.html 2011-06-28 01:12:11 UTC (rev 89883)
@@ -0,0 +1,30 @@
+<p>This tests for a bug where delete would crash if a node just after the selection to delete is removed in a DOMNodeRemoved event handler for the last node in the selection to delete. <a href=""
+<div id="div" contenteditable="true">foo<span id="foo">x</span><span id="removeme">y</span></div>
+<p id="console"></p>
+
+<script>
+
+if (window.layoutTestController)
+ window.layoutTestController.dumpAsText();
+
+function log(message) {
+ var console = document.getElementById("console");
+ var text = document.createTextNode(message);
+ console.appendChild(text);
+}
+
+function removeHandler() {
+ var removeme = document.getElementById("removeme");
+ removeme.parentNode.removeChild(removeme);
+}
+
+document.getElementById("foo").addEventListener("DOMNodeRemoved", removeHandler);
+var sel = window.getSelection();
+sel.setBaseAndExtent( document.getElementById('foo'), 0, document.getElementById('foo'), 1 );
+document.execCommand("Delete");
+
+log(document.getElementById('div').innerHTML);
+
+</script>
+
+PASS
Added: trunk/LayoutTests/editing/deleting/delete-table-cell-contents-expected.txt (0 => 89883)
--- trunk/LayoutTests/editing/deleting/delete-table-cell-contents-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/deleting/delete-table-cell-contents-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -0,0 +1,15 @@
+This tests for a crash when deleting the contents of a table cell. Below, you should only see one link, 'Cached', pointing to 'fakelink.html', inside of a table. <radr://problem/5156801>
+| <table>
+| border="0"
+| cellpadding="0"
+| cellspacing="0"
+| id="table"
+| <tbody>
+| <tr>
+| <td>
+| <br>
+| <a>
+| href=""
+| "Cached<#selection-caret>"
+| "
+"
Added: trunk/LayoutTests/editing/deleting/delete-table-cell-contents.html (0 => 89883)
--- trunk/LayoutTests/editing/deleting/delete-table-cell-contents.html (rev 0)
+++ trunk/LayoutTests/editing/deleting/delete-table-cell-contents.html 2011-06-28 01:12:11 UTC (rev 89883)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p id="description">This tests for a crash when deleting the contents of a table cell. Below, you should only see one link, 'Cached', pointing to 'fakelink.html', inside of a table. <a href=""
+<div id="test" contenteditable="true"><table id="table" border=0 cellpadding=0 cellspacing=0><tr><td><br><a href="" href=""
+</div>
+<script src=""
+<script>
+s = window.getSelection();
+table = document.getElementById("table");
+s.setPosition(table, table.childNodes.length);
+s.modify("move", "backward", "character");
+document.execCommand("Delete");
+document.execCommand("Delete");
+document.execCommand("Delete");
+document.execCommand("Delete");
+document.execCommand("Delete");
+document.execCommand("Delete");
+document.execCommand("Delete");
+Markup.description(description.textContent);
+Markup.dump("test");
+</script>
+</body>
+</html>
Deleted: trunk/LayoutTests/platform/chromium-linux/editing/deleting/5156801-2-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/chromium-win/editing/deleting/5156801-2-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/chromium-win/editing/deleting/5156801-2-expected.txt (89882 => 89883)
--- trunk/LayoutTests/platform/chromium-win/editing/deleting/5156801-2-expected.txt 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/platform/chromium-win/editing/deleting/5156801-2-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,18 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x20
- RenderText {#text} at (0,0) size 598x19
- text run at (0,0) width 598: "This tests for a crash when deleting the contents of a table cell. You should just see 'Cached' below."
- RenderBlock {DIV} at (0,36) size 784x40
- RenderTable {TABLE} at (0,0) size 47x40
- RenderTableSection {TBODY} at (0,0) size 47x40
- RenderTableRow {TR} at (0,0) size 47x40
- RenderTableCell {TD} at (0,0) size 47x40 [r=0 c=0 rs=1 cs=1]
- RenderBR {BR} at (0,0) size 0x19
- RenderInline {A} at (0,0) size 47x19 [color=#0000EE]
- RenderText {#text} at (0,20) size 47x19
- text run at (0,20) width 47: "Cached"
-caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of body
Deleted: trunk/LayoutTests/platform/gtk/editing/deleting/5156801-2-expected.txt (89882 => 89883)
--- trunk/LayoutTests/platform/gtk/editing/deleting/5156801-2-expected.txt 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/platform/gtk/editing/deleting/5156801-2-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,18 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x19
- RenderText {#text} at (0,0) size 626x19
- text run at (0,0) width 626: "This tests for a crash when deleting the contents of a table cell. You should just see 'Cached' below."
- RenderBlock {DIV} at (0,35) size 784x38
- RenderTable {TABLE} at (0,0) size 48x38
- RenderTableSection {TBODY} at (0,0) size 48x38
- RenderTableRow {TR} at (0,0) size 48x38
- RenderTableCell {TD} at (0,0) size 48x38 [r=0 c=0 rs=1 cs=1]
- RenderBR {BR} at (0,0) size 0x19
- RenderInline {A} at (0,0) size 48x19 [color=#0000EE]
- RenderText {#text} at (0,19) size 48x19
- text run at (0,19) width 48: "Cached"
-caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of body
Deleted: trunk/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.txt (89882 => 89883)
--- trunk/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.txt 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/platform/mac/editing/deleting/5156801-2-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,18 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 626x18
- text run at (0,0) width 626: "This tests for a crash when deleting the contents of a table cell. You should just see 'Cached' below."
- RenderBlock {DIV} at (0,34) size 784x36
- RenderTable {TABLE} at (0,0) size 48x36
- RenderTableSection {TBODY} at (0,0) size 48x36
- RenderTableRow {TR} at (0,0) size 48x36
- RenderTableCell {TD} at (0,0) size 48x36 [r=0 c=0 rs=1 cs=1]
- RenderBR {BR} at (0,0) size 0x18
- RenderInline {A} at (0,0) size 48x18 [color=#0000EE]
- RenderText {#text} at (0,18) size 48x18
- text run at (0,18) width 48: "Cached"
-caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of body
Deleted: trunk/LayoutTests/platform/mac-leopard/editing/deleting/5156801-2-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt (89882 => 89883)
--- trunk/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt 2011-06-28 00:34:50 UTC (rev 89882)
+++ trunk/LayoutTests/platform/qt/editing/deleting/5156801-2-expected.txt 2011-06-28 01:12:11 UTC (rev 89883)
@@ -1,18 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x22
- RenderText {#text} at (0,0) size 666x22
- text run at (0,0) width 666: "This tests for a crash when deleting the contents of a table cell. You should just see 'Cached' below."
- RenderBlock {DIV} at (0,38) size 784x44
- RenderTable {TABLE} at (0,0) size 52x44
- RenderTableSection {TBODY} at (0,0) size 52x44
- RenderTableRow {TR} at (0,0) size 52x44
- RenderTableCell {TD} at (0,0) size 52x44 [r=0 c=0 rs=1 cs=1]
- RenderBR {BR} at (0,0) size 0x22
- RenderInline {A} at (0,0) size 52x22 [color=#0000EE]
- RenderText {#text} at (0,22) size 52x22
- text run at (0,22) width 52: "Cached"
-caret: position 6 of child 0 {#text} of child 1 {A} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 3 {DIV} of body