Title: [104520] trunk/LayoutTests
Revision
104520
Author
[email protected]
Date
2012-01-09 17:12:34 -0800 (Mon, 09 Jan 2012)

Log Message

img size test for CSS3 calc
https://bugs.webkit.org/show_bug.cgi?id=75893

Reviewed by Daniel Bates.

Tests for future implementation of CSS3 calc() (see http://webkit.org/b/16662)

These tests are expected to 'fail', and will pass once calc() functionality is landed.
For now, they serve to demonstrate that the current code doesn't crash on these tests.

* css3/calc/img-size-expected-mismatch.html: Added.
* css3/calc/img-size.html: Added.
* css3/calc/resources/colorsquare.png: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (104519 => 104520)


--- trunk/LayoutTests/ChangeLog	2012-01-10 01:08:01 UTC (rev 104519)
+++ trunk/LayoutTests/ChangeLog	2012-01-10 01:12:34 UTC (rev 104520)
@@ -1,3 +1,19 @@
+2012-01-09  Mike Lawther  <[email protected]>
+
+        img size test for CSS3 calc
+        https://bugs.webkit.org/show_bug.cgi?id=75893
+
+        Reviewed by Daniel Bates.
+
+        Tests for future implementation of CSS3 calc() (see http://webkit.org/b/16662)
+
+        These tests are expected to 'fail', and will pass once calc() functionality is landed.
+        For now, they serve to demonstrate that the current code doesn't crash on these tests.
+
+        * css3/calc/img-size-expected-mismatch.html: Added.
+        * css3/calc/img-size.html: Added.
+        * css3/calc/resources/colorsquare.png: Added.
+
 2012-01-09  Jon Lee  <[email protected]>
 
         Temporary fix for pixel result diffs from focus ring (darker color on WK2).

Added: trunk/LayoutTests/css3/calc/img-size-expected-mismatch.html (0 => 104520)


--- trunk/LayoutTests/css3/calc/img-size-expected-mismatch.html	                        (rev 0)
+++ trunk/LayoutTests/css3/calc/img-size-expected-mismatch.html	2012-01-10 01:12:34 UTC (rev 104520)
@@ -0,0 +1,15 @@
+<style>
+    img      { margin-top: 10px;}
+    .control { width: 50%; }
+    .pixels  { width: 100px; }
+    .percent { width: 50%; }
+    .both    { width: 100px; }
+</style>
+
+The images below must appear identical.
+<div style="width:200px;">
+    <img class="control" src=""
+    <img class="pixels"  src=""
+    <img class="percent" src=""
+    <img class="both"    src=""
+</div>

Added: trunk/LayoutTests/css3/calc/img-size.html (0 => 104520)


--- trunk/LayoutTests/css3/calc/img-size.html	                        (rev 0)
+++ trunk/LayoutTests/css3/calc/img-size.html	2012-01-10 01:12:34 UTC (rev 104520)
@@ -0,0 +1,15 @@
+<style>
+    img      { margin-top: 10px;}
+    .control { width: 50%; }
+    .pixels  { width: -webkit-calc(100px); }
+    .percent { width: -webkit-calc(50%); }
+    .both    { width: -webkit-calc(25% + 50px); }
+</style>
+
+The images below must appear identical.
+<div style="width:200px;">
+    <img class="control" src=""
+    <img class="pixels"  src=""
+    <img class="percent" src=""
+    <img class="both"    src=""
+</div>

Added: trunk/LayoutTests/css3/calc/resources/colorsquare.png (0 => 104520)


--- trunk/LayoutTests/css3/calc/resources/colorsquare.png	                        (rev 0)
+++ trunk/LayoutTests/css3/calc/resources/colorsquare.png	2012-01-10 01:12:34 UTC (rev 104520)
@@ -0,0 +1,5 @@
+\x89PNG
+
+
+IHDRr\xB6
+$gAMA\xB1\x8E|\xFBQ\x93IDAT\xD7c\xF8\xCF\xC0\xF0\x814\x98@\xD1\xFA\xC7\xCF^IEND\xAEB`\x82
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to