Changeset 91217 in webkit


Ignore:
Timestamp:
Jul 18, 2011 3:49:38 PM (13 years ago)
Author:
commit-queue@webkit.org
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 <jackalmage@gmail.com> on 2011-07-18
Reviewed by Simon Fraser.

  • fast/dom/attribute-legacy-colors-expected.txt:
  • fast/dom/script-tests/attribute-legacy-colors.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r91211 r91217  
     12011-07-18  Tab Atkins  <jackalmage@gmail.com>
     2
     3        Add regression tests for legacy color parsing of valid CSS colors
     4        https://bugs.webkit.org/show_bug.cgi?id=64576
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/dom/attribute-legacy-colors-expected.txt:
     9        * fast/dom/script-tests/attribute-legacy-colors.js:
     10
    1112011-07-18  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt

    r90139 r91217  
    2323PASS document.body.bgColor='f򀿿f';getComputedStyle(document.body).backgroundColor; is 'rgb(240, 15, 0)'
    2424PASS document.body.bgColor='rgb(255, 0, 0)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 85, 0)'
     25PASS document.body.bgColor='rgba(255,255,255,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 80, 85)'
     26PASS document.body.bgColor='hsl(180,100%,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 1, 80)'
     27PASS document.body.bgColor='hsla(180,100%,50%,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 16, 5)'
     28PASS document.body.bgColor='currentColor';getComputedStyle(document.body).backgroundColor; is 'rgb(192, 224, 0)'
    2529PASS document.body.bgColor='550000001155000000115500000011';getComputedStyle(document.body).backgroundColor; is 'rgb(17, 17, 17)'
    2630PASS document.body.bgColor='550000000155000000015500000001';getComputedStyle(document.body).backgroundColor; is 'rgb(1, 1, 1)'
  • trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js

    r90139 r91217  
    2222        {'test':'f򀿿f', 'expected':[240, 15, 0]},
    2323        {'test':'rgb(255, 0, 0)', 'expected':[0, 85, 0]},
     24        {'test':'rgba(255,255,255,50%)', 'expected':[0,80,85]},
     25        {'test':'hsl(180,100%,50%)', 'expected':[0,1,80]},
     26        {'test':'hsla(180,100%,50%,50%)', 'expected':[0,16,5]},
     27        {'test':'currentColor', 'expected':[192,224,0]},
    2428        {'test':'550000001155000000115500000011', 'expected':[17, 17, 17]},
    2529        {'test':'550000000155000000015500000001', 'expected':[1, 1, 1]},
Note: See TracChangeset for help on using the changeset viewer.