1 Series of tests to ensure correct behaviour of canvas.currentTransform
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Check initial currentTransform values
13 Changing matrix should not affect the CTM
14 PASS ctx.currentTransform.a is 1
15 PASS ctx.currentTransform.b is 0
16 PASS ctx.currentTransform.c is 0
17 PASS ctx.currentTransform.d is 1
18 PASS ctx.currentTransform.e is 0
19 PASS ctx.currentTransform.f is 0
20 Reset the CTM to the initial matrix
34 PASS imgdata[5] is 128
36 currentTransform should not affect the current path
50 PASS imgdata[5] is 128
52 currentTransform should not affect the CTM outside of save() and restore()
66 PASS imgdata[5] is 128
68 stop drawing on not-invertible CTM
76 PASS imgdata[5] is 128
78 currentTransform with a not-invertible matrix should only stop the drawing up to the next restore()
99 PASS imgdata[6] is 255
100 currentTransform should set transform although CTM is not-invertible
115 PASS imgdata[6] is 255
116 Check that non-invertible transforms are reflected in currentTransform
135 Check assigning an invalid object throws exception as expected
136 PASS ctx.currentTransform = ctx threw exception TypeError: Failed to set the 'currentTransform' property on 'CanvasRenderingContext2D': The provided value is not of type 'SVGMatrix'..
137 PASS ctx.currentTransform = undefined threw exception TypeError: Failed to set the 'currentTransform' property on 'CanvasRenderingContext2D': The provided value is not of type 'SVGMatrix'..
138 PASS ctx.currentTransform = null threw exception TypeError: Failed to set the 'currentTransform' property on 'CanvasRenderingContext2D': The provided value is not of type 'SVGMatrix'..
139 Check handling non-finite values. see 2d.transformation.setTransform.nonfinite.html
603 PASS imgdata[5] is 128
605 PASS successfullyParsed is true