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

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

Issue 1476863003: bindings: Ignores the last undefined arguments when counting the args. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated layout tests. Created 5 years 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, 50, 50, undefined) is true
19 PASS ctx.isPointInPath(path, NaN, 50) is false 20 PASS ctx.isPointInPath(path, NaN, 50) is false
20 PASS ctx.isPointInPath(path, 50, NaN) is false 21 PASS ctx.isPointInPath(path, 50, NaN) is false
21 22
22 Testing nonzero isPointInPath with Path object 23 Testing nonzero isPointInPath with Path object
23 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') is true 24 PASS ctx.isPointInPath(path, 50, 50, 'nonzero') is true
24 25
25 Testing evenodd isPointInPath with Path object 26 Testing evenodd isPointInPath with Path object
26 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') is false 27 PASS ctx.isPointInPath(path, 50, 50, 'evenodd') is false
27 28
28 Testing invalid enumeration isPointInPath (w/ and w/o Path object 29 Testing invalid enumeration isPointInPath (w/ and w/o Path object
29 PASS ctx.isPointInPath(path, 50, 50, 'gazonk') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value 'g azonk' is not a valid enum value of type CanvasFillRule.. 30 PASS ctx.isPointInPath(path, 50, 50, 'gazonk') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value 'g azonk' is not a valid enum value of type CanvasFillRule..
30 PASS ctx.isPointInPath(50, 50, 'gazonk') threw exception TypeError: Failed to ex ecute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value 'gazonk' is not a valid enum value of type CanvasFillRule.. 31 PASS ctx.isPointInPath(50, 50, 'gazonk') threw exception TypeError: Failed to ex ecute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value 'gazonk' is not a valid enum value of type CanvasFillRule..
31 32
32 Testing invalid type isPointInPath with Path object 33 Testing invalid type isPointInPath with Path object
33 PASS ctx.isPointInPath(null, 50, 50) threw exception TypeError: Failed to execut e 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule.. 34 PASS ctx.isPointInPath(null, 50, 50) threw exception TypeError: Failed to execut e 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule..
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, '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'.. 36 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'.. 37 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': The provided value 'null' is not a valid enum value of type CanvasFillRule.. 38 PASS ctx.isPointInPath(path, 50, 50, null) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value 'null' is not a valid enum value of type CanvasFillRule..
38 PASS ctx.isPointInPath(undefined, 50, 50) threw exception TypeError: Failed to e xecute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule.. 39 PASS ctx.isPointInPath(undefined, 50, 50) threw exception TypeError: Failed to e xecute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule..
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, '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'.. 41 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'.. 42 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': The provided value ' undefined' is not a valid enum value of type CanvasFillRule..
43 PASS ctx.isPointInPath([], 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule.. 43 PASS ctx.isPointInPath([], 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule..
44 PASS ctx.isPointInPath([], 50, 50, 'nonzero') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'.. 44 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'.. 45 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': The provided value '50' is not a valid enum value of type CanvasFillRule.. 46 PASS ctx.isPointInPath({}, 50, 50) threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': The provided value '50' is not a valid enum value of type CanvasFillRule..
47 PASS ctx.isPointInPath({}, 50, 50, 'nonzero') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'.. 47 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'.. 48 PASS ctx.isPointInPath({}, 50, 50, 'evenodd') threw exception TypeError: Failed to execute 'isPointInPath' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'..
49 49
50 Testing extremely large scale 50 Testing extremely large scale
51 PASS ctx.isPointInPath(0, 0, 'nonzero') is true 51 PASS ctx.isPointInPath(0, 0, 'nonzero') is true
52 PASS ctx.isPointInPath(0, 0, 'evenodd') is true 52 PASS ctx.isPointInPath(0, 0, 'evenodd') is true
53 Check with non-invertible ctm. 53 Check with non-invertible ctm.
54 PASS ctx.isPointInPath(0, 0, 'nonzero') is false 54 PASS ctx.isPointInPath(0, 0, 'nonzero') is false
55 PASS ctx.isPointInPath(0, 0, 'evenodd') is false 55 PASS ctx.isPointInPath(0, 0, 'evenodd') is false
56 PASS successfullyParsed is true 56 PASS successfullyParsed is true
57 57
58 TEST COMPLETE 58 TEST COMPLETE
59 59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698