- added test for the DOM::Range bug fixed recently
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Sep 2004 17:29:26 +0000 (17:29 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Sep 2004 17:29:26 +0000 (17:29 +0000)
        * layout-tests/fast/dom/clone-contents-0-end-offset-expected.txt: Added.
        * layout-tests/fast/dom/clone-contents-0-end-offset.html: Added.

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

LayoutTests/fast/dom/clone-contents-0-end-offset-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/clone-contents-0-end-offset.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/fast/dom/clone-contents-0-end-offset-expected.txt b/LayoutTests/fast/dom/clone-contents-0-end-offset-expected.txt
new file mode 100644 (file)
index 0000000..024dee2
--- /dev/null
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {BLOCKQUOTE} at (40,0) size 704x18
+        RenderInline {SPAN} at (0,0) size 166x18
+          RenderText {TEXT} at (0,0) size 166x18
+            text run at (0,0) width 166: "Heck, son, you're a failure"
+      RenderBlock {P} at (0,34) size 784x18
+        RenderText {TEXT} at (0,0) size 371x18
+          text run at (0,0) width 371: "The result appears below here; should not include any text:"
+      RenderBlock {P} at (0,68) size 784x0
+        RenderInline {SPAN} at (0,0) size 0x0
diff --git a/LayoutTests/fast/dom/clone-contents-0-end-offset.html b/LayoutTests/fast/dom/clone-contents-0-end-offset.html
new file mode 100644 (file)
index 0000000..cb7cdf6
--- /dev/null
@@ -0,0 +1,23 @@
+<!-- This test was derived from a real case inside the Mail application, bug 3812471.-->
+
+<blockquote id="start"><span id="end">Heck, son, you're a failure</span></blockquote>
+
+<p>The result appears below here; should not include any text:</p>
+
+<p id="destination">Original text, should not be seen.</p>
+
+<script>
+
+var start = document.getElementById("start");
+var end = document.getElementById("end");
+var destination = document.getElementById("destination");
+
+var r = document.createRange();
+r.setStart(start, 0);
+r.setEnd(end, 0);
+
+while (destination.firstChild)
+    destination.removeChild(destination.firstChild);
+destination.appendChild(r.cloneContents());
+
+</script>
index dec707a33c8b6caf3c80c6b3a913d9f41ce6dd6f..30495654c53d98b01db08407bcecc0f80717ebc7 100644 (file)
@@ -1,3 +1,10 @@
+2004-09-23  Darin Adler  <darin@apple.com>
+
+        - added test for the DOM::Range bug fixed recently
+
+        * layout-tests/fast/dom/clone-contents-0-end-offset-expected.txt: Added.
+        * layout-tests/fast/dom/clone-contents-0-end-offset.html: Added.
+
 2004-09-23  David Hyatt  <hyatt@apple.com>
 
        Fix for hitlist bug, crash when deleting.