Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: LayoutTests/fast/canvas/canvas-isPointInPath-winding-expected.txt

Issue 234903003: Should throw TypeError instead of TypeMismatchError (canvas) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 Testing nonzero isPointInPath 11 Testing nonzero isPointInPath
12 PASS ctx.isPointInPath(50, 50, 'nonzero') is true 12 PASS ctx.isPointInPath(50, 50, 'nonzero') is true
13 13
14 Testing evenodd isPointInPath 14 Testing evenodd isPointInPath
15 PASS ctx.isPointInPath(50, 50, 'evenodd') is false 15 PASS ctx.isPointInPath(50, 50, 'evenodd') is false
16 16
17 Testing default isPointInPath with Path object 17 Testing default isPointInPath with Path object
18 PASS ctx.isPointInPath(path, 50, 50) is true 18 PASS ctx.isPointInPath(path, 50, 50) is true
19 PASS ctx.isPointInPath(path, NaN, 50) is false 19 PASS ctx.isPointInPath(path, NaN, 50) is false
20 PASS ctx.isPointInPath(path, 50, NaN) is false 20 PASS ctx.isPointInPath(path, 50, NaN) is false
21 21
22 Testing nonzero isPointInPath with Path object 22 Testing nonzero isPointInPath with Path object
23 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') is true 23 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') is true
24 24
25 Testing evenodd isPointInPath with Path object 25 Testing evenodd isPointInPath with Path object
26 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') is false 26 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') is false
27 27
28 Testing null isPointInPath with Path object 28 Testing null isPointInPath with Path object
29 PASS ctx.isPointInPath(null, 50, 50) threw exception TypeMismatchError: Failed t o execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument provid ed is either null, or an invalid Path object.. 29 PASS ctx.isPointInPath(null, 50, 50) threw exception TypeError: Failed to execut e 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument provided is ei ther null, or an invalid Path object..
30 PASS ctx.isPointInPath(null, 50, 50, 'nonzero') threw exception TypeMismatchErro r: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argu ment provided is either null, or an invalid Path object.. 30 PASS ctx.isPointInPath(null, 50, 50, 'nonzero') threw exception TypeError: Faile d to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument pro vided is either null, or an invalid Path object..
31 PASS ctx.isPointInPath(null, 50, 50, 'evenodd') threw exception TypeMismatchErro r: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argu ment provided is either null, or an invalid Path object.. 31 PASS ctx.isPointInPath(null, 50, 50, 'evenodd') threw exception TypeError: Faile d to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument pro vided is either null, or an invalid Path object..
32 PASS ctx.isPointInPath(path, 50, 50) threw exception TypeMismatchError: Failed t o execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument provid ed is either null, or an invalid Path object.. 32 PASS ctx.isPointInPath(path, 50, 50) threw exception TypeError: Failed to execut e 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument provided is ei ther null, or an invalid Path object..
33 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') threw exception TypeMismatchErro r: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argu ment provided is either null, or an invalid Path object.. 33 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') threw exception TypeError: Faile d to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument pro vided is either null, or an invalid Path object..
34 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') threw exception TypeMismatchErro r: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argu ment provided is either null, or an invalid Path object.. 34 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') threw exception TypeError: Faile d to execute 'isPointInPath' on 'CanvasRenderingContext2D': The 1st argument pro vided is either null, or an invalid Path object..
35 35
36 Testing invalid type isPointInPath with Path object 36 Testing invalid type isPointInPath with Path object
37 PASS ctx.isPointInPath([], 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid enum value.. 37 PASS ctx.isPointInPath([], 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid enum value..
38 PASS ctx.isPointInPath([], 50, 50, 'nonzero') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.. 38 PASS ctx.isPointInPath([], 50, 50, 'nonzero') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
39 PASS ctx.isPointInPath([], 50, 50, 'evenodd') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.. 39 PASS ctx.isPointInPath([], 50, 50, 'evenodd') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
40 PASS ctx.isPointInPath({}, 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid enum value.. 40 PASS ctx.isPointInPath({}, 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 3 ('50') is not a valid enum value..
41 PASS ctx.isPointInPath({}, 50, 50, 'nonzero') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.. 41 PASS ctx.isPointInPath({}, 50, 50, 'nonzero') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
42 PASS ctx.isPointInPath({}, 50, 50, 'evenodd') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.. 42 PASS ctx.isPointInPath({}, 50, 50, 'evenodd') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
43 43
44 PASS successfullyParsed is true 44 PASS successfullyParsed is true
45 45
46 TEST COMPLETE 46 TEST COMPLETE
47 47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698