blob: 3014de62d1b727411ea9b63b5df0be6a37f5d3d8 [file] [log] [blame]
Test addPath of Path2D.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Add path B with path data to path A without path data.
PASS refTest(result.data, expected.data) is true
Add empty path B to path A with path data.
PASS refTest(result.data, expected.data) is true
Add path with path data B to path A with path data.
PASS refTest(result.data, expected.data) is true
Add path with path data B to path A with path data. Fill with winding rule evenodd.
PASS refTest(result.data, expected.data) is true
Add path B to path A with transformation matrix.
PASS refTest(result.data, expected.data) is true
Add path A to itself with transformation matrix.
PASS refTest(result.data, expected.data) is true
Add path B to path A with singular transformation matrix (1).
PASS refTest(result.data, expected.data) is true
Add path B to path A with singular transformation matrix (2).
PASS refTest(result.data, expected.data) is true
Add path B to path A with singular transformation matrix (3).
PASS refTest(result.data, expected.data) is true
Various tests of invalid values.
PASS pathA.addPath(matrix, pathB) threw exception TypeError: Argument 1 ('path') to Path2D.addPath must be an instance of Path2D.
PASS pathA.addPath(pathB, 0) threw exception TypeError: Type error.
PASS pathA.addPath(pathB, "0") threw exception TypeError: Type error.
PASS successfullyParsed is true
TEST COMPLETE