3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Test addPath() with transform as identity matrix.
10 PASS imgdata[7] is 255
12 Test addPath() with transform as translate(100, -100).
13 PASS imgdata[4] is 255
14 PASS imgdata[5] is 255
16 PASS imgdata[7] is 255
18 Test addPath() with non-invertible transform.
19 PASS imgdata[4] is not 255
20 PASS imgdata[5] is not 255
22 PASS imgdata[7] is not 255
24 Test addPath() with transform as null or invalid type.
25 PASS p7.addPath(p8, []) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 2 is not of type 'SVGMatrix'..
26 PASS p7.addPath(p8, {}) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 2 is not of type 'SVGMatrix'..
27 PASS imgdata[4] is 255
30 PASS imgdata[7] is 255
32 Test addPath() with transform omitted.
33 PASS imgdata[0] is 255
36 PASS imgdata[3] is 255
38 Test addPath() with path as null and invalid type
39 PASS p7.addPath(null, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
40 PASS p7.addPath([], m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
41 PASS p7.addPath({}, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
43 PASS successfullyParsed is true