LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Mar 2006 01:47:44 +0000 (01:47 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Mar 2006 01:47:44 +0000 (01:47 +0000)
        Reviewed by Dave Harrison.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7942
          nightlies after r13387 break js createcontextualfragment

        * fast/dom/Range/create-contextual-fragment-expected.checksum: Added.
        * fast/dom/Range/create-contextual-fragment-expected.png: Added.
        * fast/dom/Range/create-contextual-fragment-expected.txt: Added.
        * fast/dom/Range/create-contextual-fragment.html: Added.

WebCore:

        Reviewed by Dave Harrison.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7942
          nightlies after r13387 break js createcontextualfragment

        Test: fast/dom/Range/create-contextual-fragment.html

        * dom/Range.idl: Add createContextualFragment.

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

LayoutTests/ChangeLog
LayoutTests/fast/dom/Range/create-contextual-fragment-expected.checksum [new file with mode: 0644]
LayoutTests/fast/dom/Range/create-contextual-fragment-expected.png [new file with mode: 0644]
LayoutTests/fast/dom/Range/create-contextual-fragment-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Range/create-contextual-fragment.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Range.idl

index 9a76c70ffd36a75dc5a280df5d12aeb3663718f3..a703c813438ea4156df2f0849dd46bf0f11f0716 100644 (file)
@@ -1,3 +1,15 @@
+2006-03-24  Darin Adler  <darin@apple.com>
+
+        Reviewed by Dave Harrison.
+
+        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7942
+          nightlies after r13387 break js createcontextualfragment
+
+        * fast/dom/Range/create-contextual-fragment-expected.checksum: Added.
+        * fast/dom/Range/create-contextual-fragment-expected.png: Added.
+        * fast/dom/Range/create-contextual-fragment-expected.txt: Added.
+        * fast/dom/Range/create-contextual-fragment.html: Added.
+
 2006-03-23  Darin Adler  <darin@apple.com>
 
         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7726
diff --git a/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.checksum b/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.checksum
new file mode 100644 (file)
index 0000000..50f17f9
--- /dev/null
@@ -0,0 +1 @@
+996eb733ea671d4311c9812f60bea1e9
\ No newline at end of file
diff --git a/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.png b/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.png
new file mode 100644 (file)
index 0000000..a06c4b1
Binary files /dev/null and b/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.png differ
diff --git a/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.txt b/LayoutTests/fast/dom/Range/create-contextual-fragment-expected.txt
new file mode 100644 (file)
index 0000000..0b9897f
--- /dev/null
@@ -0,0 +1,12 @@
+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 784x584
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {TEXT} at (0,0) size 640x18
+          text run at (0,0) width 640: "Test of createContextualFragment. If the test succeeds you will see the word \"success\" below in bold."
+      RenderBlock {DIV} at (0,34) size 784x18
+        RenderInline {B} at (0,0) size 74x18
+          RenderText {TEXT} at (0,0) size 74x18
+            text run at (0,0) width 74: "SUCCESS"
diff --git a/LayoutTests/fast/dom/Range/create-contextual-fragment.html b/LayoutTests/fast/dom/Range/create-contextual-fragment.html
new file mode 100644 (file)
index 0000000..dc2b5c1
--- /dev/null
@@ -0,0 +1,8 @@
+<p>Test of createContextualFragment. If the test succeeds you will see the word "success" below in bold.</p>
+<div id="a"></div>
+<script>
+var r = document.createRange();
+var node = document.getElementById("a");
+r.selectNodeContents(node);
+node.appendChild(r.createContextualFragment("<b>SUCCESS</b>"));
+</script>
index 99c583f73e20543501f17827eb351f9570cd0994..666e2ce89a4450b889fafb4b8717c52ead3df23b 100644 (file)
@@ -1,3 +1,14 @@
+2006-03-24  Darin Adler  <darin@apple.com>
+
+        Reviewed by Dave Harrison.
+
+        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7942
+          nightlies after r13387 break js createcontextualfragment
+
+        Test: fast/dom/Range/create-contextual-fragment.html
+
+        * dom/Range.idl: Add createContextualFragment.
+
 2006-03-24  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by mjs.
index 320ad4721b11ea6aa3d15322749d1298fc44469e..ea5b2ccde03c43cb6272606597df5bbdffedfac8 100644 (file)
@@ -84,6 +84,11 @@ module ranges {
         void detach()
             raises(dom::DOMException);
 
+        // extensions
+
+        DocumentFragment createContextualFragment(in DOMString html)
+            raises(dom::DOMException);
+
     };
 
 }