2011-06-14 Wyatt Carss <wcarss@google.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jun 2011 18:48:55 +0000 (18:48 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jun 2011 18:48:55 +0000 (18:48 +0000)
        Reviewed by Ryosuke Niwa.

        dump-as-text conversion: editing/deleting/5300379.html
        https://bugs.webkit.org/show_bug.cgi?id=62620

        Converted from pixel test to dump-as-text. This tests that delete backward
        by word does not hang inside an empty div, and that delete backward by word
        deletes exactly one word.

        * editing/deleting/5300379-expected.txt: Added.
        * editing/deleting/5300379.html:
        * platform/chromium-win/editing/deleting/5300379-expected.txt: Removed.
        * platform/chromium-win/editing/deleting/5300379-expected.png: Removed.
        * platform/gtk/editing/deleting/5300379-expected.txt: Removed.
        * platform/gtk/editing/deleting/5300379-expected.png: Removed.
        * platform/mac/editing/deleting/5300379-expected.txt: Removed.
        * platform/mac/editing/deleting/5300379-expected.png: Removed.
        * platform/qt/editing/deleting/5300379-expected.txt: Removed.
        * platform/qt/editing/deleting/5300379-expected.png: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88840 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/editing/deleting/5300379-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/5300379.html
LayoutTests/platform/chromium-linux/editing/deleting/5300379-expected.png [deleted file]
LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.png [deleted file]
LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.txt [deleted file]
LayoutTests/platform/gtk/editing/deleting/5300379-expected.txt [deleted file]
LayoutTests/platform/mac-leopard/editing/deleting/5300379-expected.png [deleted file]
LayoutTests/platform/mac/editing/deleting/5300379-expected.png [deleted file]
LayoutTests/platform/mac/editing/deleting/5300379-expected.txt [deleted file]
LayoutTests/platform/qt/editing/deleting/5300379-expected.txt [deleted file]

index e2cbb81..50e0f1f 100644 (file)
@@ -1,3 +1,25 @@
+2011-06-14  Wyatt Carss  <wcarss@google.com>
+
+        Reviewed by Ryosuke Niwa.
+
+        dump-as-text conversion: editing/deleting/5300379.html
+        https://bugs.webkit.org/show_bug.cgi?id=62620
+
+        Converted from pixel test to dump-as-text. This tests that delete backward 
+        by word does not hang inside an empty div, and that delete backward by word
+        deletes exactly one word.
+
+        * editing/deleting/5300379-expected.txt: Added.
+        * editing/deleting/5300379.html:
+        * platform/chromium-win/editing/deleting/5300379-expected.txt: Removed.
+        * platform/chromium-win/editing/deleting/5300379-expected.png: Removed.
+        * platform/gtk/editing/deleting/5300379-expected.txt: Removed.
+        * platform/gtk/editing/deleting/5300379-expected.png: Removed.
+        * platform/mac/editing/deleting/5300379-expected.txt: Removed.
+        * platform/mac/editing/deleting/5300379-expected.png: Removed.
+        * platform/qt/editing/deleting/5300379-expected.txt: Removed.
+        * platform/qt/editing/deleting/5300379-expected.png: Removed.
+
 2011-06-14  Qi Zhang  <qi.2.zhang@nokia.com>
 
         Reviewed by Laszlo Gombos.
diff --git a/LayoutTests/editing/deleting/5300379-expected.txt b/LayoutTests/editing/deleting/5300379-expected.txt
new file mode 100644 (file)
index 0000000..5df887e
--- /dev/null
@@ -0,0 +1,3 @@
+Success
+This tests that deleting backward by word in an empty div doesn't hang, and that it deletes exactly one word. You should see 'Success' above.
+
index 23c81ac..6b55a8a 100644 (file)
@@ -1,8 +1,8 @@
 <div></div>
 <div contenteditable="true" id="div"></div>
 <div></div>
-
 <script>
+
 div = document.getElementById("div");
 sel = window.getSelection();
 sel.setPosition(div, 0);
@@ -13,6 +13,8 @@ if (window.layoutTestController) {
     // Delete 'FAIL' with deleteWordBackward: to verify that it's not a no-op.
     layoutTestController.execCommand("DeleteWordBackward");
     layoutTestController.execCommand("DeleteBackward");
+    document.execCommand("InsertText", false, "\nThis tests that deleting backward by word in an empty div doesn't hang, and that it deletes exactly one word. You should see 'Success' above.");
+    window.layoutTestController.dumpAsText();
 } else {
     document.execCommand("InsertText", false, "To run this test manually.  Delete all this text and then option-delete.  Safari shouldn't hang.");
 }
diff --git a/LayoutTests/platform/chromium-linux/editing/deleting/5300379-expected.png b/LayoutTests/platform/chromium-linux/editing/deleting/5300379-expected.png
deleted file mode 100644 (file)
index e36e571..0000000
Binary files a/LayoutTests/platform/chromium-linux/editing/deleting/5300379-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.png b/LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.png
deleted file mode 100644 (file)
index 5553587..0000000
Binary files a/LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.txt b/LayoutTests/platform/chromium-win/editing/deleting/5300379-expected.txt
deleted file mode 100644 (file)
index 4f9d9ed..0000000
+++ /dev/null
@@ -1,11 +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 {DIV} at (0,0) size 784x0
-      RenderBlock {DIV} at (0,0) size 784x20
-        RenderText {#text} at (0,0) size 49x19
-          text run at (0,0) width 49: "Success"
-      RenderBlock {DIV} at (0,20) size 784x0
-caret: position 7 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/gtk/editing/deleting/5300379-expected.txt b/LayoutTests/platform/gtk/editing/deleting/5300379-expected.txt
deleted file mode 100644 (file)
index 3c011a9..0000000
+++ /dev/null
@@ -1,11 +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 {DIV} at (0,0) size 784x0
-      RenderBlock {DIV} at (0,0) size 784x19
-        RenderText {#text} at (0,0) size 50x19
-          text run at (0,0) width 50: "Success"
-      RenderBlock {DIV} at (0,19) size 784x0
-caret: position 7 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/mac-leopard/editing/deleting/5300379-expected.png b/LayoutTests/platform/mac-leopard/editing/deleting/5300379-expected.png
deleted file mode 100644 (file)
index 4eeb222..0000000
Binary files a/LayoutTests/platform/mac-leopard/editing/deleting/5300379-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/editing/deleting/5300379-expected.png b/LayoutTests/platform/mac/editing/deleting/5300379-expected.png
deleted file mode 100644 (file)
index 0958166..0000000
Binary files a/LayoutTests/platform/mac/editing/deleting/5300379-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/editing/deleting/5300379-expected.txt b/LayoutTests/platform/mac/editing/deleting/5300379-expected.txt
deleted file mode 100644 (file)
index 78e753c..0000000
+++ /dev/null
@@ -1,11 +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 {DIV} at (0,0) size 784x0
-      RenderBlock {DIV} at (0,0) size 784x18
-        RenderText {#text} at (0,0) size 50x18
-          text run at (0,0) width 50: "Success"
-      RenderBlock {DIV} at (0,18) size 784x0
-caret: position 7 of child 0 {#text} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/5300379-expected.txt b/LayoutTests/platform/qt/editing/deleting/5300379-expected.txt
deleted file mode 100644 (file)
index 2c70ab3..0000000
+++ /dev/null
@@ -1,11 +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 {DIV} at (0,0) size 784x0
-      RenderBlock {DIV} at (0,0) size 784x22
-        RenderText {#text} at (0,0) size 51x22
-          text run at (0,0) width 51: "Success"
-      RenderBlock {DIV} at (0,22) size 784x0
-caret: position 7 of child 0 {#text} of child 2 {DIV} of body