1 Tests CanvasPathMethods arc and arcTo with negative radii.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS ctx.arc(10, 10, 5, 0, 1, false) did not throw exception.
7 PASS ctx.arc(10, 10, 0, 0, 1, false) did not throw exception.
8 PASS ctx.arc(10, 10, -5, 0, 1, false) threw exception IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-5) is negative..
9 PASS ctx.arcTo(10, 10, 20, 20, 5) did not throw exception.
10 PASS ctx.arcTo(10, 10, 20, 20, 0) did not throw exception.
11 PASS ctx.arcTo(10, 10, 20, 20, -5) threw exception IndexSizeError: Failed to execute 'arcTo' on 'CanvasRenderingContext2D': The radius provided (-5) is negative..
12 PASS path.arc(10, 10, 5, 0, 1, false) did not throw exception.
13 PASS path.arc(10, 10, 0, 0, 1, false) did not throw exception.
14 PASS path.arc(10, 10, -5, 0, 1, false) threw exception IndexSizeError: Failed to execute 'arc' on 'Path2D': The radius provided (-5) is negative..
15 PASS path.arcTo(10, 10, 20, 20, 5) did not throw exception.
16 PASS path.arcTo(10, 10, 20, 20, 0) did not throw exception.
17 PASS path.arcTo(10, 10, 20, 20, -5) threw exception IndexSizeError: Failed to execute 'arcTo' on 'Path2D': The radius provided (-5) is negative..
18 PASS successfullyParsed is true