Title: [91217] trunk/LayoutTests
Revision
91217
Author
[email protected]
Date
2011-07-18 15:49:38 -0700 (Mon, 18 Jul 2011)

Log Message

Add regression tests for legacy color parsing of valid CSS colors
https://bugs.webkit.org/show_bug.cgi?id=64576

Patch by Tab Atkins <[email protected]> on 2011-07-18
Reviewed by Simon Fraser.

* fast/dom/attribute-legacy-colors-expected.txt:
* fast/dom/script-tests/attribute-legacy-colors.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (91216 => 91217)


--- trunk/LayoutTests/ChangeLog	2011-07-18 22:42:57 UTC (rev 91216)
+++ trunk/LayoutTests/ChangeLog	2011-07-18 22:49:38 UTC (rev 91217)
@@ -1,3 +1,13 @@
+2011-07-18  Tab Atkins  <[email protected]>
+
+        Add regression tests for legacy color parsing of valid CSS colors
+        https://bugs.webkit.org/show_bug.cgi?id=64576
+
+        Reviewed by Simon Fraser.
+
+        * fast/dom/attribute-legacy-colors-expected.txt:
+        * fast/dom/script-tests/attribute-legacy-colors.js:
+
 2011-07-18  Ryosuke Niwa  <[email protected]>
 
         [SVG] [Chromium]: painting-control-04-f.svg and zero-path-square-cap-rendering.svg are failing

Modified: trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt (91216 => 91217)


--- trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt	2011-07-18 22:42:57 UTC (rev 91216)
+++ trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt	2011-07-18 22:49:38 UTC (rev 91217)
@@ -22,6 +22,10 @@
 PASS document.body.bgColor='ff򀿿ff';getComputedStyle(document.body).backgroundColor; is 'rgb(255, 0, 255)'
 PASS document.body.bgColor='f򀿿f';getComputedStyle(document.body).backgroundColor; is 'rgb(240, 15, 0)'
 PASS document.body.bgColor='rgb(255, 0, 0)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 85, 0)'
+PASS document.body.bgColor='rgba(255,255,255,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 80, 85)'
+PASS document.body.bgColor='hsl(180,100%,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 1, 80)'
+PASS document.body.bgColor='hsla(180,100%,50%,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 16, 5)'
+PASS document.body.bgColor='currentColor';getComputedStyle(document.body).backgroundColor; is 'rgb(192, 224, 0)'
 PASS document.body.bgColor='550000001155000000115500000011';getComputedStyle(document.body).backgroundColor; is 'rgb(17, 17, 17)'
 PASS document.body.bgColor='550000000155000000015500000001';getComputedStyle(document.body).backgroundColor; is 'rgb(1, 1, 1)'
 PASS document.body.bgColor='550000000055000000005500000000';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 0, 0)'

Modified: trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js (91216 => 91217)


--- trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js	2011-07-18 22:42:57 UTC (rev 91216)
+++ trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js	2011-07-18 22:49:38 UTC (rev 91217)
@@ -21,6 +21,10 @@
 	{'test':'ff򀿿ff', 'expected':[255, 0, 255]},
 	{'test':'f򀿿f', 'expected':[240, 15, 0]},
 	{'test':'rgb(255, 0, 0)', 'expected':[0, 85, 0]},
+	{'test':'rgba(255,255,255,50%)', 'expected':[0,80,85]},
+	{'test':'hsl(180,100%,50%)', 'expected':[0,1,80]},
+	{'test':'hsla(180,100%,50%,50%)', 'expected':[0,16,5]},
+	{'test':'currentColor', 'expected':[192,224,0]},
 	{'test':'550000001155000000115500000011', 'expected':[17, 17, 17]},
 	{'test':'550000000155000000015500000001', 'expected':[1, 1, 1]},
 	{'test':'550000000055000000005500000000', 'expected':[0, 0, 0]},
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to