Commit e09116b4 authored by ariya@webkit.org's avatar ariya@webkit.org

2009-04-24 Ariya Hidayat <ariya.hidayat@nokia.com>

        Reviewed by Simon Hausmann.

        Added Qt-specific expected result for color conversion.

        This is to compensate the lack of color profile in Qt to do
        color conversion, hence CMYK 0,0,0,1 always give pure black (#000)
        instead of very dark black.

        * platform/qt/fast/canvas/set-colors-expected.txt: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@42816 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6e9f40dd
2009-04-24 Ariya Hidayat <ariya.hidayat@nokia.com>
Reviewed by Simon Hausmann.
Added Qt-specific expected result for color conversion.
This is to compensate the lack of color profile in Qt to do
color conversion, hence CMYK 0,0,0,1 always give pure black (#000)
instead of very dark black.
* platform/qt/fast/canvas/set-colors-expected.txt: Added.
2009-04-23 Adele Peterson <adele@apple.com>
Reviewed by Dan Bernstein.
......
Test of various canvas graphics context calls for setting colors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS testFillStyle('transparent') is transparent
PASS testFillStyle('blue') is blue
PASS testFillStyle('#FF0000') is red
PASS testFillStyle('#f00') is red
PASS testFillStyle('rgb(255, 0, 0)') is red
PASS testFillStyle('rgba(255, 0, 0, 1)') is red
PASS testFillStyle('rgba(255, 0, 0, 0.8)') is translucentRed
PASS testFillStyle('rgba(255, 0, 0, 0)') is transparent
PASS testFillGradient('transparent') is transparent
PASS testFillGradient('blue') is blue
PASS testFillGradient('#FF0000') is red
PASS testFillGradient('#f00') is red
PASS testFillGradient('rgb(255, 0, 0)') is red
PASS testFillGradient('rgba(255, 0, 0, 1)') is red
PASS testFillGradient('rgba(255, 0, 0, 0.8)') is translucentRed
PASS testFillGradient('rgba(255, 0, 0, 0)') is transparent
PASS testSetFillColor('"blue"') is blue
PASS testSetFillColor('"#FF0000"') is red
PASS testSetFillColor('"#f00"') is red
PASS testSetFillColor('"rgb(255, 0, 0)"') is red
PASS testSetFillColor('"rgba(255, 0, 0, 1)"') is red
PASS testSetFillColor('"rgba(255, 0, 0, 0.8)"') is translucentRed
PASS testSetFillColor('"rgba(255, 0, 0, 0)"') is transparent
PASS testSetFillColor('"blue", 0.8') is translucentBlue
PASS testSetFillColor('1') is white
PASS testSetFillColor('1, 0.8') is translucentWhite
PASS testSetFillColor('0, 1, 0, 1') is green
PASS testSetFillColor('0, 1, 0, 0.8') is translucentGreen
FAIL testSetFillColor('0, 0, 0, 1, 1') should be #1a1a1a. Was #000000.
FAIL testSetFillColor('0, 0, 0, 1, 0.8') should be rgba(25, 25, 25, 0.8). Was rgba(0, 0, 0, 0.8).
PASS testSetFillColor('0, 0, 0, 1, 0') is transparent
PASS testStrokeStyle('transparent') is transparent
PASS testStrokeStyle('blue') is blue
PASS testStrokeStyle('#FF0000') is red
PASS testStrokeStyle('#f00') is red
PASS testStrokeStyle('rgb(255, 0, 0)') is red
PASS testStrokeStyle('rgba(255, 0, 0, 1)') is red
PASS testStrokeStyle('rgba(255, 0, 0, 0.8)') is translucentRed
PASS testStrokeStyle('rgba(255, 0, 0, 0)') is transparent
PASS testStrokeGradient('transparent') is transparent
PASS testStrokeGradient('blue') is blue
PASS testStrokeGradient('#FF0000') is red
PASS testStrokeGradient('#f00') is red
PASS testStrokeGradient('rgb(255, 0, 0)') is red
PASS testStrokeGradient('rgba(255, 0, 0, 1)') is red
PASS testStrokeGradient('rgba(255, 0, 0, 0.8)') is translucentRed
PASS testStrokeGradient('rgba(255, 0, 0, 0)') is transparent
PASS testSetStrokeColor('"blue"') is blue
PASS testSetStrokeColor('"#FF0000"') is red
PASS testSetStrokeColor('"#f00"') is red
PASS testSetStrokeColor('"rgb(255, 0, 0)"') is red
PASS testSetStrokeColor('"rgba(255, 0, 0, 1)"') is red
PASS testSetStrokeColor('"rgba(255, 0, 0, 0.8)"') is translucentRed
PASS testSetStrokeColor('"rgba(255, 0, 0, 0)"') is transparent
PASS testSetStrokeColor('"blue", 0.8') is translucentBlue
PASS testSetStrokeColor('1') is white
PASS testSetStrokeColor('1, 0.8') is translucentWhite
PASS testSetStrokeColor('0, 1, 0, 1') is green
PASS testSetStrokeColor('0, 1, 0, 0.8') is translucentGreen
FAIL testSetStrokeColor('0, 0, 0, 1, 1') should be #1a1a1a. Was rgba(0, 0, 0, 0.12549019607843137).
FAIL testSetStrokeColor('0, 0, 0, 1, 0.8') should be rgba(25, 25, 25, 0.8). Was rgba(0, 0, 0, 0.10196078431372549).
PASS testSetStrokeColor('0, 0, 0, 1, 0') is transparent
PASS successfullyParsed is true
TEST COMPLETE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment