OLD | NEW |
(Empty) | |
| 1 Test addPath() method. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Test addPath() with transform as identity matrix. |
| 7 PASS imgdata[4] is 255 |
| 8 PASS imgdata[5] is 255 |
| 9 PASS imgdata[6] is 0 |
| 10 PASS imgdata[7] is 255 |
| 11 |
| 12 Test addPath() with transform as translate(100, -100). |
| 13 PASS imgdata[4] is 255 |
| 14 PASS imgdata[5] is 255 |
| 15 PASS imgdata[6] is 0 |
| 16 PASS imgdata[7] is 255 |
| 17 |
| 18 Test addPath() with non-invertible transform. |
| 19 PASS imgdata[4] is not 255 |
| 20 PASS imgdata[5] is not 255 |
| 21 PASS imgdata[6] is 0 |
| 22 PASS imgdata[7] is not 255 |
| 23 |
| 24 Test addPath() with transform as null or invalid type. |
| 25 PASS imgdata[4] is 255 |
| 26 PASS imgdata[5] is 0 |
| 27 PASS imgdata[6] is 0 |
| 28 PASS imgdata[7] is 255 |
| 29 |
| 30 Test addPath() with path as null and invalid type |
| 31 PASS p7.addPath(null, m) threw exception TypeMismatchError: Failed to execute 'a
ddPath' on 'Path': The 1st argument provided is either null, or an invalid Path
object.. |
| 32 PASS p7.addPath([], m) threw exception TypeMismatchError: Failed to execute 'add
Path' on 'Path': The 1st argument provided is either null, or an invalid Path ob
ject.. |
| 33 PASS p7.addPath({}, m) threw exception TypeMismatchError: Failed to execute 'add
Path' on 'Path': The 1st argument provided is either null, or an invalid Path ob
ject.. |
| 34 |
| 35 PASS successfullyParsed is true |
| 36 |
| 37 TEST COMPLETE |
| 38 |
OLD | NEW |