Reviewed by Darin.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Mar 2006 05:28:27 +0000 (05:28 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Mar 2006 05:28:27 +0000 (05:28 +0000)
        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3438

        * fast/replaced/img-1x1-expected.checksum: Added.
        * fast/replaced/img-1x1-expected.txt: Added.
        * fast/replaced/img-1x1.html: Added.
        * fast/replaced/img-1x1-expected.png: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/replaced/img-1x1-expected.checksum [new file with mode: 0644]
LayoutTests/fast/replaced/img-1x1-expected.png [new file with mode: 0644]
LayoutTests/fast/replaced/img-1x1-expected.txt [new file with mode: 0644]
LayoutTests/fast/replaced/img-1x1.html [new file with mode: 0644]

index 6ca331695239b667ae9a6341dd41bac3a23309a9..6c247aab8e5d22fb36e41abd3e6bd906299952f8 100644 (file)
@@ -1,3 +1,14 @@
+2006-03-18  Alexey Proskuryakov  <ap@nypop.com>
+
+        Reviewed by Darin.
+
+        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3438
+
+        * fast/replaced/img-1x1-expected.checksum: Added.
+        * fast/replaced/img-1x1-expected.txt: Added.
+        * fast/replaced/img-1x1.html: Added.
+        * fast/replaced/img-1x1-expected.png: Added.
+
 2006-03-18  Darin Adler  <darin@apple.com>
 
         - updated test results for tests affected by Hyatt's latest table fix
diff --git a/LayoutTests/fast/replaced/img-1x1-expected.checksum b/LayoutTests/fast/replaced/img-1x1-expected.checksum
new file mode 100644 (file)
index 0000000..70d94a7
--- /dev/null
@@ -0,0 +1 @@
+856eb8e8e0ee4834a3f069e5e710f8b6
\ No newline at end of file
diff --git a/LayoutTests/fast/replaced/img-1x1-expected.png b/LayoutTests/fast/replaced/img-1x1-expected.png
new file mode 100644 (file)
index 0000000..1659482
Binary files /dev/null and b/LayoutTests/fast/replaced/img-1x1-expected.png differ
diff --git a/LayoutTests/fast/replaced/img-1x1-expected.txt b/LayoutTests/fast/replaced/img-1x1-expected.txt
new file mode 100644 (file)
index 0000000..ec26614
--- /dev/null
@@ -0,0 +1,25 @@
+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 53x18
+          text run at (0,0) width 53: "Test for "
+        RenderInline {A} at (0,0) size 60x18 [color=#0000EE]
+          RenderText {TEXT} at (53,0) size 60x18
+            text run at (53,0) width 60: "bug 3438"
+        RenderText {TEXT} at (113,0) size 202x18
+          text run at (113,0) width 202: ": rendering of 1x1 PNG images."
+      RenderTable {TABLE} at (0,34) size 440x24
+        RenderTableSection {TBODY} at (0,0) size 0x24
+          RenderTableRow {TR} at (0,0) size 0x0
+            RenderTableCell {TD} at (2,2) size 408x20 [r=0 c=0 rs=1 cs=1]
+              RenderText {TEXT} at (1,1) size 406x18
+                text run at (1,1) width 406: "Should be uniform color (comparing PNG with GIF and JPEG):"
+            RenderTableCell {TD} at (412,6) size 12x12 [r=0 c=1 rs=1 cs=1]
+              RenderImage {IMG} at (1,1) size 10x10
+              RenderText {TEXT} at (0,0) size 0x0
+            RenderTableCell {TD} at (426,6) size 12x12 [r=0 c=2 rs=1 cs=1]
+              RenderImage {IMG} at (1,1) size 10x10
+              RenderText {TEXT} at (0,0) size 0x0
diff --git a/LayoutTests/fast/replaced/img-1x1.html b/LayoutTests/fast/replaced/img-1x1.html
new file mode 100644 (file)
index 0000000..2fd62eb
--- /dev/null
@@ -0,0 +1,11 @@
+<p>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=3438">bug 3438</a>: rendering of 1x1 PNG images.</p>
+<table>
+  <tr><td>Should be uniform color (comparing PNG with GIF and JPEG):</td>
+   <td style='background-image: url("data:image/png,%89%50%4e%47%0d%0a%1a%0a%00%00%00%0d%49%48%44%52%00%00%00%01%00%00%00%01%08%06%00%00%00%1f%15%c4%89%00%00%00%04%67%41%4d%41%00%00%af%c8%37%05%8a%e9%00%00%00%19%74%45%58%74%53%6f%66%74%77%61%72%65%00%41%64%6f%62%65%20%49%6d%61%67%65%52%65%61%64%79%71%c9%65%3c%00%00%00%0f%49%44%41%54%78%da%62%62%a8%fb%af%07%10%60%00%03%b5%01%ae%2f%07%97%8d%00%00%00%00%49%45%4e%44%ae%42%60%82%00");'>
+     <img width=10 height=10 src="data:image/jpeg,%ff%d8%ff%e0%00%10%4a%46%49%46%00%01%02%00%00%64%00%64%00%00%ff%ec%00%11%44%75%63%6b%79%00%01%00%04%00%00%00%3c%00%00%ff%ee%00%0e%41%64%6f%62%65%00%64%c0%00%00%00%01%ff%db%00%84%00%06%04%04%04%05%04%06%05%05%06%09%06%05%06%09%0b%08%06%06%08%0b%0c%0a%0a%0b%0a%0a%0c%10%0c%0c%0c%0c%0c%0c%10%0c%0e%0f%10%0f%0e%0c%13%13%14%14%13%13%1c%1b%1b%1b%1c%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%01%07%07%07%0d%0c%0d%18%10%10%18%1a%15%11%15%1a%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%1f%ff%c0%00%11%08%00%01%00%01%03%01%11%00%02%11%01%03%11%01%ff%c4%00%4b%00%01%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%08%01%01%01%00%00%00%00%00%00%00%00%00%00%00%00%00%00%04%05%10%01%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%11%01%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%ff%da%00%0c%03%01%00%02%11%03%11%00%3f%00%42%a9%00%ff%d9">
+   </td>
+   <td style='background-image: url("data:image/png,%89%50%4e%47%0d%0a%1a%0a%00%00%00%0d%49%48%44%52%00%00%00%01%00%00%00%01%08%06%00%00%00%1f%15%c4%89%00%00%00%04%67%41%4d%41%00%00%af%c8%37%05%8a%e9%00%00%00%19%74%45%58%74%53%6f%66%74%77%61%72%65%00%41%64%6f%62%65%20%49%6d%61%67%65%52%65%61%64%79%71%c9%65%3c%00%00%00%0f%49%44%41%54%78%da%62%62%a8%fb%af%07%10%60%00%03%b5%01%ae%2f%07%97%8d%00%00%00%00%49%45%4e%44%ae%42%60%82%00");'>
+     <img width=10 height=10 src="data:image/gif,%47%49%46%38%39%61%01%00%01%00%80%00%00%d1%e8%ff%00%00%00%21%f9%04%00%00%00%00%00%2c%00%00%00%00%01%00%01%00%00%02%02%44%01%00%3b%00">
+   </td>
+  </tr>
+</table>