Commit afe1b6e7 authored by mrowe@apple.com's avatar mrowe@apple.com
Browse files

Update test results for changes in handling of CMYK.

Reviewed by Sam Weinig.

* fast/canvas/resources/set-colors.js:
* fast/canvas/set-colors-expected.txt:
* platform/mac-leopard/fast/canvas/set-colors-expected.txt: Copied from LayoutTests/fast/canvas/set-colors-expected.txt.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 323fa91a
2009-03-19 Mark Rowe <mrowe@apple.com>
Reviewed by Sam Weinig.
Update test results for changes in handling of CMYK.
* fast/canvas/resources/set-colors.js:
* fast/canvas/set-colors-expected.txt:
* platform/mac-leopard/fast/canvas/set-colors-expected.txt: Copied from LayoutTests/fast/canvas/set-colors-expected.txt.
2009-03-19 Geoffrey Garen <ggaren@apple.com>
 
Reviewed by Sam Weinig.
......
......@@ -125,8 +125,8 @@ shouldBe("testSetFillColor('1')", "white");
shouldBe("testSetFillColor('1, 0.8')", "translucentWhite");
shouldBe("testSetFillColor('0, 1, 0, 1')", "green");
shouldBe("testSetFillColor('0, 1, 0, 0.8')", "translucentGreen");
shouldBe("testSetFillColor('0, 0, 0, 1, 1')", "'#141414'");
shouldBe("testSetFillColor('0, 0, 0, 1, 0.8')", "'rgba(20, 20, 20, 0.8)'");
shouldBe("testSetFillColor('0, 0, 0, 1, 1')", "'#1a1a1a'"); // This test is expected to fail on older versions of Mac OS X.
shouldBe("testSetFillColor('0, 0, 0, 1, 0.8')", "'rgba(25, 25, 25, 0.8)'"); // Ditto.
shouldBe("testSetFillColor('0, 0, 0, 1, 0')", "transparent");
shouldBe("testStrokeStyle('transparent')", "transparent");
shouldBe("testStrokeStyle('blue')", "blue");
......@@ -156,8 +156,8 @@ shouldBe("testSetStrokeColor('1')", "white");
shouldBe("testSetStrokeColor('1, 0.8')", "translucentWhite");
shouldBe("testSetStrokeColor('0, 1, 0, 1')", "green");
shouldBe("testSetStrokeColor('0, 1, 0, 0.8')", "translucentGreen");
shouldBe("testSetStrokeColor('0, 0, 0, 1, 1')", "'#141414'");
shouldBe("testSetStrokeColor('0, 0, 0, 1, 0.8')", "'rgba(20, 20, 20, 0.8)'");
shouldBe("testSetStrokeColor('0, 0, 0, 1, 1')", "'#1a1a1a'"); // This test is expected to fail on older versions of Mac OS X.
shouldBe("testSetStrokeColor('0, 0, 0, 1, 0.8')", "'rgba(25, 25, 25, 0.8)'"); // Ditto.
shouldBe("testSetStrokeColor('0, 0, 0, 1, 0')", "transparent");
var successfullyParsed = true;
......@@ -31,8 +31,8 @@ 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
PASS testSetFillColor('0, 0, 0, 1, 1') is '#141414'
PASS testSetFillColor('0, 0, 0, 1, 0.8') is 'rgba(20, 20, 20, 0.8)'
PASS testSetFillColor('0, 0, 0, 1, 1') is '#1a1a1a'
PASS testSetFillColor('0, 0, 0, 1, 0.8') is 'rgba(25, 25, 25, 0.8)'
PASS testSetFillColor('0, 0, 0, 1, 0') is transparent
PASS testStrokeStyle('transparent') is transparent
PASS testStrokeStyle('blue') is blue
......@@ -62,8 +62,8 @@ 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
PASS testSetStrokeColor('0, 0, 0, 1, 1') is '#141414'
PASS testSetStrokeColor('0, 0, 0, 1, 0.8') is 'rgba(20, 20, 20, 0.8)'
PASS testSetStrokeColor('0, 0, 0, 1, 1') is '#1a1a1a'
PASS testSetStrokeColor('0, 0, 0, 1, 0.8') is 'rgba(25, 25, 25, 0.8)'
PASS testSetStrokeColor('0, 0, 0, 1, 0') is transparent
PASS successfullyParsed is true
......
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 #141414.
FAIL testSetFillColor('0, 0, 0, 1, 0.8') should be rgba(25, 25, 25, 0.8). Was rgba(20, 20, 20, 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 #141414.
FAIL testSetStrokeColor('0, 0, 0, 1, 0.8') should be rgba(25, 25, 25, 0.8). Was rgba(20, 20, 20, 0.8).
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