2d.path.isPointInpath.invalid

Verify isPointInPath throws exceptions with invalid inputs.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassVerify isPointInPath throws exceptions with invalid inputs.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(path, 50, 50, 'gazonk'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:30:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(50, 50, 'gazonk'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:31:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(null, 50, 50); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:34:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(null, 50, 50, 'nonzero'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:35:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(null, 50, 50, 'evenodd'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:36:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(null, 50, 50, null); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:37:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(path, 50, 50, null); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:38:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(undefined, 50, 50); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:39:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(undefined, 50, 50, 'nonzero'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:40:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(undefined, 50, 50, 'evenodd'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:41:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath(undefined, 50, 50, undefined); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:42:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath([], 50, 50); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:43:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath([], 50, 50, 'nonzero'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:44:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath([], 50, 50, 'evenodd'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:45:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath({}, 50, 50); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:46:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath({}, 50, 50, 'nonzero'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:47:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { ctx.isPointInPath({}, 50, 50, 'evenodd'); }")
    at Test.<anonymous> ( /html/canvas/offscreen/path-objects/2d.path.isPointInpath.invalid.html:48:3)