| OLD | NEW |
| 1 Test that CanvasRenderingContext2D supports the 'currentColor' value. | 1 Test that CanvasRenderingContext2D supports the 'currentColor' value. |
| 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 ctx.shadowColor = '#f00'; ctx.shadowColor is '#ff0000' | 6 PASS ctx.shadowColor = '#f00'; ctx.shadowColor is '#ff0000' |
| 7 PASS ctx.shadowColor = 'currentColor'; ctx.shadowColor is '#000000' | 7 PASS ctx.shadowColor = 'currentColor'; ctx.shadowColor is '#000000' |
| 8 PASS ctx.fillStyle = '#f00'; ctx.fillStyle is '#ff0000' | 8 PASS ctx.fillStyle = '#f00'; ctx.fillStyle is '#ff0000' |
| 9 PASS ctx.fillStyle = 'currentColor'; ctx.fillStyle is '#000000' | 9 PASS ctx.fillStyle = 'currentColor'; ctx.fillStyle is '#000000' |
| 10 PASS ctx.strokeStyle = '#f00'; ctx.strokeStyle is '#ff0000' | 10 PASS ctx.strokeStyle = '#f00'; ctx.strokeStyle is '#ff0000' |
| 11 PASS ctx.strokeStyle = 'currentColor'; ctx.strokeStyle is '#000000' | 11 PASS ctx.strokeStyle = 'currentColor'; ctx.strokeStyle is '#000000' |
| 12 PASS ctx.setShadow(0, 0, 0, '#f00'); ctx.shadowColor is '#ff0000' | |
| 13 PASS ctx.setShadow(0, 0, 0, 'currentColor'); ctx.shadowColor is '#000000' | |
| 14 PASS ctx.setShadow(0, 0, 0, '#f00', 0.0); ctx.shadowColor is 'rgba(255, 0, 0, 0)
' | |
| 15 PASS ctx.setShadow(0, 0, 0, 'currentColor', 0.0); ctx.shadowColor is 'rgba(0, 0,
0, 0)' | |
| 16 PASS ctx.setStrokeColor('#f00'); ctx.strokeStyle is '#ff0000' | |
| 17 PASS ctx.setStrokeColor('currentColor'); ctx.strokeStyle is '#000000' | |
| 18 PASS ctx.setStrokeColor('#f00', 0.0); ctx.strokeStyle is 'rgba(255, 0, 0, 0)' | |
| 19 PASS ctx.setStrokeColor('currentColor', 0.0); ctx.strokeStyle is 'rgba(0, 0, 0,
0)' | |
| 20 PASS ctx.setFillColor('#f00'); ctx.fillStyle is '#ff0000' | |
| 21 PASS ctx.setFillColor('currentColor'); ctx.fillStyle is '#000000' | |
| 22 PASS ctx.setFillColor('#f00', 0.0); ctx.fillStyle is 'rgba(255, 0, 0, 0)' | |
| 23 PASS ctx.setFillColor('currentColor', 0.0); ctx.fillStyle is 'rgba(0, 0, 0, 0)' | |
| 24 PASS tryLinearGradientColor('#f00') is '255,0,0,255' | 12 PASS tryLinearGradientColor('#f00') is '255,0,0,255' |
| 25 PASS tryLinearGradientColor('currentColor') is '0,0,0,255' | 13 PASS tryLinearGradientColor('currentColor') is '0,0,0,255' |
| 26 PASS tryRadialGradientColor('#f00') is '255,0,0,255' | 14 PASS tryRadialGradientColor('#f00') is '255,0,0,255' |
| 27 PASS tryRadialGradientColor('currentColor') is '0,0,0,255' | 15 PASS tryRadialGradientColor('currentColor') is '0,0,0,255' |
| 28 PASS attachCanvasToDocument() is true | 16 PASS attachCanvasToDocument() is true |
| 29 PASS canvas.style.color = '#123456'; canvas.style.color is 'rgb(18, 52, 86)' | 17 PASS canvas.style.color = '#123456'; canvas.style.color is 'rgb(18, 52, 86)' |
| 30 PASS ctx.shadowColor = '#f00'; ctx.shadowColor is '#ff0000' | 18 PASS ctx.shadowColor = '#f00'; ctx.shadowColor is '#ff0000' |
| 31 PASS ctx.shadowColor = 'currentColor'; ctx.shadowColor is '#123456' | 19 PASS ctx.shadowColor = 'currentColor'; ctx.shadowColor is '#123456' |
| 32 PASS ctx.fillStyle = '#f00'; ctx.fillStyle is '#ff0000' | 20 PASS ctx.fillStyle = '#f00'; ctx.fillStyle is '#ff0000' |
| 33 PASS ctx.fillStyle = 'currentColor'; ctx.fillStyle is '#123456' | 21 PASS ctx.fillStyle = 'currentColor'; ctx.fillStyle is '#123456' |
| 34 PASS ctx.strokeStyle = '#f00'; ctx.strokeStyle is '#ff0000' | 22 PASS ctx.strokeStyle = '#f00'; ctx.strokeStyle is '#ff0000' |
| 35 PASS ctx.strokeStyle = 'currentColor'; ctx.strokeStyle is '#123456' | 23 PASS ctx.strokeStyle = 'currentColor'; ctx.strokeStyle is '#123456' |
| 36 PASS ctx.setShadow(0, 0, 0, '#f00'); ctx.shadowColor is '#ff0000' | |
| 37 PASS ctx.setShadow(0, 0, 0, 'currentColor'); ctx.shadowColor is '#123456' | |
| 38 PASS ctx.setShadow(0, 0, 0, '#f00', 0.0); ctx.shadowColor is 'rgba(255, 0, 0, 0)
' | |
| 39 PASS ctx.setShadow(0, 0, 0, 'currentColor', 0.0); ctx.shadowColor is 'rgba(18, 5
2, 86, 0)' | |
| 40 PASS ctx.setStrokeColor('#f00'); ctx.strokeStyle is '#ff0000' | |
| 41 PASS ctx.setStrokeColor('currentColor'); ctx.strokeStyle is '#123456' | |
| 42 PASS ctx.setStrokeColor('#f00', 0.0); ctx.strokeStyle is 'rgba(255, 0, 0, 0)' | |
| 43 PASS ctx.setStrokeColor('currentColor', 0.0); ctx.strokeStyle is 'rgba(18, 52, 8
6, 0)' | |
| 44 PASS ctx.setFillColor('#f00'); ctx.fillStyle is '#ff0000' | |
| 45 PASS ctx.setFillColor('currentColor'); ctx.fillStyle is '#123456' | |
| 46 PASS ctx.setFillColor('#f00', 0.0); ctx.fillStyle is 'rgba(255, 0, 0, 0)' | |
| 47 PASS ctx.setFillColor('currentColor', 0.0); ctx.fillStyle is 'rgba(18, 52, 86, 0
)' | |
| 48 PASS tryLinearGradientColor('#f00') is '255,0,0,255' | 24 PASS tryLinearGradientColor('#f00') is '255,0,0,255' |
| 49 PASS tryLinearGradientColor('currentColor') is '0,0,0,255' | 25 PASS tryLinearGradientColor('currentColor') is '0,0,0,255' |
| 50 PASS tryRadialGradientColor('#f00') is '255,0,0,255' | 26 PASS tryRadialGradientColor('#f00') is '255,0,0,255' |
| 51 PASS tryRadialGradientColor('currentColor') is '0,0,0,255' | 27 PASS tryRadialGradientColor('currentColor') is '0,0,0,255' |
| 52 PASS ctx.shadowColor = '#f00'; ctx.shadowColor is '#ff0000' | 28 PASS ctx.shadowColor = '#f00'; ctx.shadowColor is '#ff0000' |
| 53 PASS ctx.shadowColor = 'CURRENTCOLOR'; ctx.shadowColor is '#123456' | 29 PASS ctx.shadowColor = 'CURRENTCOLOR'; ctx.shadowColor is '#123456' |
| 54 PASS successfullyParsed is true | 30 PASS successfullyParsed is true |
| 55 | 31 |
| 56 TEST COMPLETE | 32 TEST COMPLETE |
| 57 | 33 |
| OLD | NEW |