- layout test for 4065447, outerHTML on images
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Apr 2005 16:07:43 +0000 (16:07 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Apr 2005 16:07:43 +0000 (16:07 +0000)
        * layout-tests/fast/dynamic/outerHTML-img-expected.txt: Added.
        * layout-tests/fast/dynamic/outerHTML-img.html: Added.

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

LayoutTests/fast/dynamic/outerHTML-img-expected.txt [new file with mode: 0644]
LayoutTests/fast/dynamic/outerHTML-img.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/fast/dynamic/outerHTML-img-expected.txt b/LayoutTests/fast/dynamic/outerHTML-img-expected.txt
new file mode 100644 (file)
index 0000000..73fe06e
--- /dev/null
@@ -0,0 +1,21 @@
+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 47x18
+          text run at (0,0) width 47: "test for "
+        RenderInline {A} at (0,0) size 56x18 [color=#0000EE]
+          RenderText {TEXT} at (47,0) size 56x18
+            text run at (47,0) width 56: "4065447"
+        RenderText {TEXT} at (103,0) size 257x18
+          text run at (103,0) width 257: " (support outerHTML on IMG elements)"
+      RenderBlock {P} at (0,34) size 784x18
+        RenderText {TEXT} at (0,0) size 504x18
+          text run at (0,0) width 504: "If the test fails, you'll see a Mozilla logo; if it succeeds, you'll see an Apple logo."
+      RenderBlock (anonymous) at (0,68) size 784x64
+        RenderImage {IMG} at (0,0) size 52x64
+        RenderText {TEXT} at (0,0) size 0x0
+        RenderText {TEXT} at (0,0) size 0x0
+        RenderText {TEXT} at (0,0) size 0x0
diff --git a/LayoutTests/fast/dynamic/outerHTML-img.html b/LayoutTests/fast/dynamic/outerHTML-img.html
new file mode 100644 (file)
index 0000000..c0c06a3
--- /dev/null
@@ -0,0 +1,14 @@
+<html>
+<body>
+<p>test for <a href="rdar://problem/4065447">4065447</a> (support outerHTML on IMG elements)</p>
+<p>If the test fails, you'll see a Mozilla logo; if it succeeds, you'll see an Apple logo.</p>
+<img id="anImage" src="http://images.slashdot.org/topics/topicmozilla.gif">
+
+<script type="text/javascript">
+var anImage = document.getElementById("anImage");
+var outerStr = "<img id='anImage' src='http://images.slashdot.org/topics/topicapple.gif'>";
+anImage.outerHTML = outerStr;
+</script>
+
+</body>
+</html>
index 083c4bdbb59aa3b71231bf6674ac8b2d1cc2d0b7..c96642babec89f9e62cbb150d79de03adb27aead 100644 (file)
@@ -1,3 +1,10 @@
+2005-04-21  Vicki Murley  <vicki@apple.com>
+
+       - layout test for 4065447, outerHTML on images
+
+        * layout-tests/fast/dynamic/outerHTML-img-expected.txt: Added.
+        * layout-tests/fast/dynamic/outerHTML-img.html: Added.
+
 2005-04-20  Vicki Murley  <vicki@apple.com>
 
         Reviewed by hyatt.