2006-11-19 Mitz Pettel <mitz@webkit.org>
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Nov 2006 09:12:01 +0000 (09:12 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Nov 2006 09:12:01 +0000 (09:12 +0000)
        Reviewed by Maciej.

        - http://bugs.webkit.org/show_bug.cgi?id=11626
          Automate test for rdar://problem/4056100

WebCore:
        * manual-tests/delete-into-nested-block.html: Removed.

LayoutTests:
        * fast/repaint/delete-into-nested-block-expected.checksum: Added.
        * fast/repaint/delete-into-nested-block-expected.png: Added.
        * fast/repaint/delete-into-nested-block-expected.txt: Added.
        * fast/repaint/delete-into-nested-block.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/repaint/delete-into-nested-block-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/delete-into-nested-block-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/delete-into-nested-block-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/delete-into-nested-block.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/manual-tests/delete-into-nested-block.html [deleted file]

index 729a32d06b09c006fd80144a53997598ca406177..bc7bdfd0f0bbb68727963f098b61e5600ce595af 100644 (file)
@@ -1,3 +1,15 @@
+2006-11-19  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Maciej.
+
+        - http://bugs.webkit.org/show_bug.cgi?id=11626
+          Automate test for rdar://problem/4056100
+
+        * fast/repaint/delete-into-nested-block-expected.checksum: Added.
+        * fast/repaint/delete-into-nested-block-expected.png: Added.
+        * fast/repaint/delete-into-nested-block-expected.txt: Added.
+        * fast/repaint/delete-into-nested-block.html: Added.
+
 2006-11-18  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Darin.
diff --git a/LayoutTests/fast/repaint/delete-into-nested-block-expected.checksum b/LayoutTests/fast/repaint/delete-into-nested-block-expected.checksum
new file mode 100644 (file)
index 0000000..a2f0a22
--- /dev/null
@@ -0,0 +1 @@
+c25db14f03e47700af86d8457c33e597
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/delete-into-nested-block-expected.png b/LayoutTests/fast/repaint/delete-into-nested-block-expected.png
new file mode 100644 (file)
index 0000000..814bc7c
Binary files /dev/null and b/LayoutTests/fast/repaint/delete-into-nested-block-expected.png differ
diff --git a/LayoutTests/fast/repaint/delete-into-nested-block-expected.txt b/LayoutTests/fast/repaint/delete-into-nested-block-expected.txt
new file mode 100644 (file)
index 0000000..594365d
--- /dev/null
@@ -0,0 +1,19 @@
+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 {H4} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 334x18
+          text run at (0,0) width 334: "Deleting into a nested block (was Radar 4056100)"
+      RenderBlock {DIV} at (0,39) size 400x54
+        RenderText {#text} at (0,0) size 369x54
+          text run at (0,0) width 345: "The bug's symptom was that the visual result were two"
+          text run at (0,18) width 369: "instances of the word \"three\", because the original was not"
+          text run at (0,36) width 175: "erased. Resize cleared it up."
+      RenderBlock {HR} at (0,101) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,111) size 784x100
+        RenderBlock {DIV} at (0,0) size 784x18
+          RenderText {#text} at (0,0) size 31x18
+            text run at (0,0) width 31: "three"
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/fast/repaint/delete-into-nested-block.html b/LayoutTests/fast/repaint/delete-into-nested-block.html
new file mode 100644 (file)
index 0000000..36b5c6c
--- /dev/null
@@ -0,0 +1,31 @@
+<html>
+<head>
+    <script src="repaint.js" type="text/javascript"></script>
+    <script type="text/javascript">
+        function repaintTest()
+        {
+            document.execCommand("Delete");
+        }
+    </script>
+</head>
+<body onload="runRepaintTest()">
+    <h4>Deleting into a nested block (was Radar 4056100)</h4>
+    <div style="width:400px;">
+        The bug's symptom was that the visual result were two instances of the word "three", because the original was not erased. Resize cleared it up.
+    </div>
+    <hr>
+    <div contenteditable style="height: 100px;">
+        <div id="one">one</div>
+        <div id="two">
+            <div>two</div>
+            <div>three</div>
+        </div>
+    </div>
+    <script type="text/javascript">
+        var sel = window.getSelection();
+        var one = document.getElementById("one");
+        var two = document.getElementById("two");
+        sel.setBaseAndExtent(one, 0, two, 2);
+    </script>
+</body>
+</html>
index b1e09c4fbaf4da2fb9a16a3932a3c6c6196c5af1..7b414d3464bbd0ea7bbfa1153bb58246c63c31d6 100644 (file)
@@ -1,3 +1,12 @@
+2006-11-19  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Maciej.
+
+        - http://bugs.webkit.org/show_bug.cgi?id=11626
+          Automate test for rdar://problem/4056100
+
+        * manual-tests/delete-into-nested-block.html: Removed.
+
 2006-11-19  Nikolas Zimmermann  <zimmermann@kde.org>
 
         Reviewed by Oliver.
diff --git a/WebCore/manual-tests/delete-into-nested-block.html b/WebCore/manual-tests/delete-into-nested-block.html
deleted file mode 100644 (file)
index df90493..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<html><body>
-<h4>Deleting into a nested block (was Radar 4056100)</h4>
-<ol>
-<li>open this file in Safari or Blot</li>
-<li>select the first two lines "one" and "two"</li>
-<li>press the delete key</li>
-</ol>
-
-<div style="width:400px;">The bug's symptom was that the visual result were two instances of the word "three", because the original was not erased. Resize cleared it up. </div>
-<hr>
-<div contenteditable>
-    <div>one</div>
-    <div>
-        <div>two</div>
-        <div>three</div>
-    </div>
-</div>
-</body></html>
\ No newline at end of file