OLD | NEW |
1 Series of tests to ensure correct results of the winding rule in isPointInPath. | 1 Series of tests to ensure correct results of the winding rule in isPointInPath. |
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 Testing default isPointInPath | 6 Testing default isPointInPath |
7 PASS ctx.isPointInPath(50, 50) is true | 7 PASS ctx.isPointInPath(50, 50) is true |
8 PASS ctx.isPointInPath(NaN, 50) is false | 8 PASS ctx.isPointInPath(NaN, 50) is false |
9 PASS ctx.isPointInPath(50, NaN) is false | 9 PASS ctx.isPointInPath(50, NaN) is false |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 Testing invalid type isPointInPath with Path object | 32 Testing invalid type isPointInPath with Path object |
33 PASS ctx.isPointInPath(null, 50, 50) threw exception TypeError: Failed to execut
e 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a val
id enum value.. | 33 PASS ctx.isPointInPath(null, 50, 50) threw exception TypeError: Failed to execut
e 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a val
id enum value.. |
34 PASS ctx.isPointInPath(null, 50, 50, 'nonzero') threw exception TypeError: Faile
d to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not o
f type 'Path2D'.. | 34 PASS ctx.isPointInPath(null, 50, 50, 'nonzero') threw exception TypeError: Faile
d to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not o
f type 'Path2D'.. |
35 PASS ctx.isPointInPath(null, 50, 50, 'evenodd') threw exception TypeError: Faile
d to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not o
f type 'Path2D'.. | 35 PASS ctx.isPointInPath(null, 50, 50, 'evenodd') threw exception TypeError: Faile
d to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not o
f type 'Path2D'.. |
36 PASS ctx.isPointInPath(null, 50, 50, null) threw exception TypeError: Failed to
execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of typ
e 'Path2D'.. | 36 PASS ctx.isPointInPath(null, 50, 50, null) threw exception TypeError: Failed to
execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of typ
e 'Path2D'.. |
37 PASS ctx.isPointInPath(path, 50, 50, null) threw exception TypeError: Failed to
execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 4 ('null') is n
ot a valid enum value.. | 37 PASS ctx.isPointInPath(path, 50, 50, null) threw exception TypeError: Failed to
execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 4 ('null') is n
ot a valid enum value.. |
38 PASS ctx.isPointInPath(undefined, 50, 50) threw exception TypeError: Failed to e
xecute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not
a valid enum value.. | 38 PASS ctx.isPointInPath(undefined, 50, 50) threw exception TypeError: Failed to e
xecute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not
a valid enum value.. |
39 PASS ctx.isPointInPath(undefined, 50, 50, 'nonzero') threw exception TypeError:
Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is
not of type 'Path2D'.. | 39 PASS ctx.isPointInPath(undefined, 50, 50, 'nonzero') threw exception TypeError:
Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is
not of type 'Path2D'.. |
40 PASS ctx.isPointInPath(undefined, 50, 50, 'evenodd') threw exception TypeError:
Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is
not of type 'Path2D'.. | 40 PASS ctx.isPointInPath(undefined, 50, 50, 'evenodd') threw exception TypeError:
Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is
not of type 'Path2D'.. |
41 PASS ctx.isPointInPath(undefined, 50, 50, undefined) threw exception TypeError:
Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is
not of type 'Path2D'.. | 41 PASS ctx.isPointInPath(undefined, 50, 50, undefined) threw exception TypeError:
Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is
not of type 'Path2D'.. |
42 PASS ctx.isPointInPath(path, 50, 50, undefined) threw exception TypeError: Faile
d to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 4 ('undefi
ned') is not a valid enum value.. | |
43 PASS ctx.isPointInPath([], 50, 50) threw exception TypeError: Failed to execute
'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid
enum value.. | 42 PASS ctx.isPointInPath([], 50, 50) threw exception TypeError: Failed to execute
'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid
enum value.. |
44 PASS ctx.isPointInPath([], 50, 50, 'nonzero') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. | 43 PASS ctx.isPointInPath([], 50, 50, 'nonzero') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. |
45 PASS ctx.isPointInPath([], 50, 50, 'evenodd') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. | 44 PASS ctx.isPointInPath([], 50, 50, 'evenodd') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. |
46 PASS ctx.isPointInPath({}, 50, 50) threw exception TypeError: Failed to execute
'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid
enum value.. | 45 PASS ctx.isPointInPath({}, 50, 50) threw exception TypeError: Failed to execute
'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid
enum value.. |
47 PASS ctx.isPointInPath({}, 50, 50, 'nonzero') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. | 46 PASS ctx.isPointInPath({}, 50, 50, 'nonzero') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. |
48 PASS ctx.isPointInPath({}, 50, 50, 'evenodd') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. | 47 PASS ctx.isPointInPath({}, 50, 50, 'evenodd') threw exception TypeError: Failed
to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of
type 'Path2D'.. |
49 | 48 |
50 PASS successfullyParsed is true | 49 PASS successfullyParsed is true |
51 | 50 |
52 TEST COMPLETE | 51 TEST COMPLETE |
53 | 52 |
OLD | NEW |