OLD | NEW |
1 Test of various canvas graphics context calls for setting colors. | 1 Test of various canvas graphics context calls for setting colors. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS testFillStyle('transparent') is transparent | 6 PASS testFillStyle('transparent') is transparent |
7 PASS testFillStyle('blue') is blue | 7 PASS testFillStyle('blue') is blue |
8 PASS testFillStyle('#FF0000') is red | 8 PASS testFillStyle('#FF0000') is red |
9 PASS testFillStyle('#f00') is red | 9 PASS testFillStyle('#f00') is red |
10 PASS testFillStyle('rgb(255, 0, 0)') is red | 10 PASS testFillStyle('rgb(255, 0, 0)') is red |
11 PASS testFillStyle('rgba(255, 0, 0, 1)') is red | 11 PASS testFillStyle('rgba(255, 0, 0, 1)') is red |
12 PASS testFillStyle('rgba(255, 0, 0, 0.8)') is translucentRed | 12 PASS testFillStyle('rgba(255, 0, 0, 0.8)') is translucentRed |
13 PASS testFillStyle('rgba(255, 0, 0, 0)') is transparent | 13 PASS testFillStyle('rgba(255, 0, 0, 0)') is transparent |
14 PASS testFillGradient('transparent') is transparent | 14 PASS testFillGradient('transparent') is transparent |
15 PASS testFillGradient('blue') is blue | 15 PASS testFillGradient('blue') is blue |
16 PASS testFillGradient('#FF0000') is red | 16 PASS testFillGradient('#FF0000') is red |
17 PASS testFillGradient('#f00') is red | 17 PASS testFillGradient('#f00') is red |
18 PASS testFillGradient('rgb(255, 0, 0)') is red | 18 PASS testFillGradient('rgb(255, 0, 0)') is red |
19 PASS testFillGradient('rgba(255, 0, 0, 1)') is red | 19 PASS testFillGradient('rgba(255, 0, 0, 1)') is red |
20 PASS testFillGradient('rgba(255, 0, 0, 0.8)') is translucentRed | 20 PASS testFillGradient('rgba(255, 0, 0, 0.8)') is translucentRed |
21 PASS testFillGradient('rgba(255, 0, 0, 0)') is transparent | 21 PASS testFillGradient('rgba(255, 0, 0, 0)') is transparent |
22 PASS testSetFillColor('"blue"') is blue | |
23 PASS testSetFillColor('"#FF0000"') is red | |
24 PASS testSetFillColor('"#f00"') is red | |
25 PASS testSetFillColor('"rgb(255, 0, 0)"') is red | |
26 PASS testSetFillColor('"rgba(255, 0, 0, 1)"') is red | |
27 PASS testSetFillColor('"rgba(255, 0, 0, 0.8)"') is translucentRed | |
28 PASS testSetFillColor('"rgba(255, 0, 0, 0)"') is transparent | |
29 PASS testSetFillColor('"blue", 0.8') is translucentBlue | |
30 PASS testSetFillColor('1') is white | |
31 PASS testSetFillColor('1, 0.8') is translucentWhite | |
32 PASS testSetFillColor('0, 1, 0, 1') is green | |
33 PASS testSetFillColor('0, 1, 0, 0.8') is translucentGreen | |
34 FAIL testSetFillColor('0, 0, 0, 1, 1') should be #1a1a1a. Was #000000. | |
35 FAIL testSetFillColor('0, 0, 0, 1, 0.8') should be rgba(25, 25, 25, 0.8). Was rg
ba(0, 0, 0, 0.8). | |
36 PASS testSetFillColor('0, 0, 0, 1, 0') is transparent | |
37 PASS testStrokeStyle('transparent') is transparent | 22 PASS testStrokeStyle('transparent') is transparent |
38 PASS testStrokeStyle('blue') is blue | 23 PASS testStrokeStyle('blue') is blue |
39 PASS testStrokeStyle('#FF0000') is red | 24 PASS testStrokeStyle('#FF0000') is red |
40 PASS testStrokeStyle('#f00') is red | 25 PASS testStrokeStyle('#f00') is red |
41 PASS testStrokeStyle('rgb(255, 0, 0)') is red | 26 PASS testStrokeStyle('rgb(255, 0, 0)') is red |
42 PASS testStrokeStyle('rgba(255, 0, 0, 1)') is red | 27 PASS testStrokeStyle('rgba(255, 0, 0, 1)') is red |
43 PASS testStrokeStyle('rgba(255, 0, 0, 0.8)') is translucentRed | 28 PASS testStrokeStyle('rgba(255, 0, 0, 0.8)') is translucentRed |
44 PASS testStrokeStyle('rgba(255, 0, 0, 0)') is transparent | 29 PASS testStrokeStyle('rgba(255, 0, 0, 0)') is transparent |
45 PASS testStrokeGradient('transparent') is transparent | 30 PASS testStrokeGradient('transparent') is transparent |
46 PASS testStrokeGradient('blue') is blue | 31 PASS testStrokeGradient('blue') is blue |
47 PASS testStrokeGradient('#FF0000') is red | 32 PASS testStrokeGradient('#FF0000') is red |
48 PASS testStrokeGradient('#f00') is red | 33 PASS testStrokeGradient('#f00') is red |
49 PASS testStrokeGradient('rgb(255, 0, 0)') is red | 34 PASS testStrokeGradient('rgb(255, 0, 0)') is red |
50 PASS testStrokeGradient('rgba(255, 0, 0, 1)') is red | 35 PASS testStrokeGradient('rgba(255, 0, 0, 1)') is red |
51 PASS testStrokeGradient('rgba(255, 0, 0, 0.8)') is translucentRed | 36 PASS testStrokeGradient('rgba(255, 0, 0, 0.8)') is translucentRed |
52 PASS testStrokeGradient('rgba(255, 0, 0, 0)') is transparent | 37 PASS testStrokeGradient('rgba(255, 0, 0, 0)') is transparent |
53 PASS testSetStrokeColor('"blue"') is blue | |
54 PASS testSetStrokeColor('"#FF0000"') is red | |
55 PASS testSetStrokeColor('"#f00"') is red | |
56 PASS testSetStrokeColor('"rgb(255, 0, 0)"') is red | |
57 PASS testSetStrokeColor('"rgba(255, 0, 0, 1)"') is red | |
58 PASS testSetStrokeColor('"rgba(255, 0, 0, 0.8)"') is translucentRed | |
59 PASS testSetStrokeColor('"rgba(255, 0, 0, 0)"') is transparent | |
60 PASS testSetStrokeColor('"blue", 0.8') is translucentBlue | |
61 PASS testSetStrokeColor('1') is white | |
62 PASS testSetStrokeColor('1, 0.8') is translucentWhite | |
63 PASS testSetStrokeColor('0, 1, 0, 1') is green | |
64 PASS testSetStrokeColor('0, 1, 0, 0.8') is translucentGreen | |
65 FAIL testSetStrokeColor('0, 0, 0, 1, 1') should be #1a1a1a. Was #000000. | |
66 FAIL testSetStrokeColor('0, 0, 0, 1, 0.8') should be rgba(25, 25, 25, 0.8). Was
rgba(0, 0, 0, 0.8). | |
67 PASS testSetStrokeColor('0, 0, 0, 1, 0') is transparent | |
68 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
69 | 39 |
70 TEST COMPLETE | 40 TEST COMPLETE |
71 | 41 |
OLD | NEW |