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

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

Issue 179383002: Add versions of isPointIn*() that take a Path parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase again Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-isPointInStroke-with-path.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
9 PASS ctx.isPointInPath(50, NaN) is false
8 10
9 Testing nonzero isPointInPath 11 Testing nonzero isPointInPath
10 PASS ctx.isPointInPath(50, 50, 'nonzero') is true 12 PASS ctx.isPointInPath(50, 50, 'nonzero') is true
11 13
12 Testing evenodd isPointInPath 14 Testing evenodd isPointInPath
13 PASS ctx.isPointInPath(50, 50, 'evenodd') is false 15 PASS ctx.isPointInPath(50, 50, 'evenodd') is false
14 16
17 Testing default isPointInPath with Path object
18 PASS ctx.isPointInPath(path, 50, 50) is true
19 PASS ctx.isPointInPath(path, NaN, 50) is false
20 PASS ctx.isPointInPath(path, 50, NaN) is false
21
22 Testing nonzero isPointInPath with Path object
23 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') is true
24
25 Testing evenodd isPointInPath with Path object
26 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') is false
27
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..
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..
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..
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..
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..
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..
35
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..
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..
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..
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
15 PASS successfullyParsed is true 44 PASS successfullyParsed is true
16 45
17 TEST COMPLETE 46 TEST COMPLETE
18 47
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-isPointInStroke-with-path.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698