| OLD | NEW |
| 1 Test the behavior of currentPath in Canvas | 1 Test the behavior of currentPath in Canvas |
| 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 Create path object, replace current context path with the path of this object. | 6 Create path object, replace current context path with the path of this object. |
| 7 PASS ctx.isPointInPath(49,49) is false | 7 PASS ctx.isPointInPath(49,49) is false |
| 8 PASS ctx.isPointInPath(99,99) is false | 8 PASS ctx.isPointInPath(99,99) is false |
| 9 PASS ctx.isPointInPath(149,149) is false | 9 PASS ctx.isPointInPath(149,149) is false |
| 10 PASS ctx.isPointInPath(199,199) is false | 10 PASS ctx.isPointInPath(199,199) is false |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 Test that path object can get applied to transformed context, respecting the CTM
. | 30 Test that path object can get applied to transformed context, respecting the CTM
. |
| 31 PASS ctx.isPointInPath(49,49) is false | 31 PASS ctx.isPointInPath(49,49) is false |
| 32 PASS ctx.isPointInPath(99,99) is false | 32 PASS ctx.isPointInPath(99,99) is false |
| 33 PASS ctx.isPointInPath(149,149) is true | 33 PASS ctx.isPointInPath(149,149) is true |
| 34 PASS ctx.isPointInPath(199,199) is true | 34 PASS ctx.isPointInPath(199,199) is true |
| 35 PASS ctx.isPointInPath(249,249) is true | 35 PASS ctx.isPointInPath(249,249) is true |
| 36 | 36 |
| 37 Test that currentPath returns a path object. | 37 Test that currentPath returns a path object. |
| 38 PASS p is null | 38 PASS p is null |
| 39 PASS p is an instance of Path | 39 PASS p is an instance of Path2D |
| 40 | 40 |
| 41 Create context path and test that it exists. | 41 Create context path and test that it exists. |
| 42 PASS ctx.isPointInPath(49,49) is true | 42 PASS ctx.isPointInPath(49,49) is true |
| 43 PASS ctx.isPointInPath(99,99) is true | 43 PASS ctx.isPointInPath(99,99) is true |
| 44 PASS ctx.isPointInPath(149,149) is true | 44 PASS ctx.isPointInPath(149,149) is true |
| 45 PASS ctx.isPointInPath(199,199) is true | 45 PASS ctx.isPointInPath(199,199) is true |
| 46 PASS ctx.isPointInPath(249,249) is false | 46 PASS ctx.isPointInPath(249,249) is false |
| 47 | 47 |
| 48 Clear context path. | 48 Clear context path. |
| 49 PASS ctx.isPointInPath(49,49) is false | 49 PASS ctx.isPointInPath(49,49) is false |
| (...skipping 25 matching lines...) Expand all Loading... |
| 75 Apply path back to context path. | 75 Apply path back to context path. |
| 76 PASS ctx.isPointInPath(49,49) is true | 76 PASS ctx.isPointInPath(49,49) is true |
| 77 PASS ctx.isPointInPath(99,99) is true | 77 PASS ctx.isPointInPath(99,99) is true |
| 78 PASS ctx.isPointInPath(149,149) is false | 78 PASS ctx.isPointInPath(149,149) is false |
| 79 PASS ctx.isPointInPath(199,199) is true | 79 PASS ctx.isPointInPath(199,199) is true |
| 80 PASS ctx.isPointInPath(249,249) is true | 80 PASS ctx.isPointInPath(249,249) is true |
| 81 PASS successfullyParsed is true | 81 PASS successfullyParsed is true |
| 82 | 82 |
| 83 TEST COMPLETE | 83 TEST COMPLETE |
| 84 | 84 |
| OLD | NEW |