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

Side by Side Diff: LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt

Issue 289283002: Add some layout tests about behavior on undefined and null. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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 Test the behavior of isPointInStroke in Canvas with path object 1 Test the behavior of isPointInStroke in Canvas with path object
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 Initial behavior: lineWidth = 1.0 6 Initial behavior: lineWidth = 1.0
7 PASS ctx.isPointInStroke(path,20,20) is true 7 PASS ctx.isPointInStroke(path,20,20) is true
8 PASS ctx.isPointInStroke(path,120,20) is true 8 PASS ctx.isPointInStroke(path,120,20) is true
9 PASS ctx.isPointInStroke(path,20,120) is true 9 PASS ctx.isPointInStroke(path,20,120) is true
10 PASS ctx.isPointInStroke(path,120,120) is true 10 PASS ctx.isPointInStroke(path,120,120) is true
11 PASS ctx.isPointInStroke(path,70,20) is true 11 PASS ctx.isPointInStroke(path,70,20) is true
12 PASS ctx.isPointInStroke(path,20,70) is true 12 PASS ctx.isPointInStroke(path,20,70) is true
13 PASS ctx.isPointInStroke(path,120,70) is true 13 PASS ctx.isPointInStroke(path,120,70) is true
14 PASS ctx.isPointInStroke(path,70,120) is true 14 PASS ctx.isPointInStroke(path,70,120) is true
15 PASS ctx.isPointInStroke(path,22,22) is false 15 PASS ctx.isPointInStroke(path,22,22) is false
16 PASS ctx.isPointInStroke(path,118,22) is false 16 PASS ctx.isPointInStroke(path,118,22) is false
17 PASS ctx.isPointInStroke(path,22,118) is false 17 PASS ctx.isPointInStroke(path,22,118) is false
18 PASS ctx.isPointInStroke(path,118,118) is false 18 PASS ctx.isPointInStroke(path,118,118) is false
19 PASS ctx.isPointInStroke(path,70,18) is false 19 PASS ctx.isPointInStroke(path,70,18) is false
20 PASS ctx.isPointInStroke(path,122,70) is false 20 PASS ctx.isPointInStroke(path,122,70) is false
21 PASS ctx.isPointInStroke(path,70,122) is false 21 PASS ctx.isPointInStroke(path,70,122) is false
22 PASS ctx.isPointInStroke(path,18,70) is false 22 PASS ctx.isPointInStroke(path,18,70) is false
23 PASS ctx.isPointInStroke(path,NaN,122) is false 23 PASS ctx.isPointInStroke(path,NaN,122) is false
24 PASS ctx.isPointInStroke(path,18,NaN) is false 24 PASS ctx.isPointInStroke(path,18,NaN) is false
25 25
26 Check null and invalid type 26 Check invalid type
27 PASS ctx.isPointInStroke(null,70,20) threw exception TypeError: Failed to execut e 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'P ath2D'.. 27 PASS ctx.isPointInStroke(null,70,20) threw exception TypeError: Failed to execut e 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'P ath2D'..
28 PASS ctx.isPointInStroke(undefined,70,20) threw exception TypeError: Failed to e xecute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of ty pe 'Path2D'..
28 PASS ctx.isPointInStroke([],20,70) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Pat h2D'.. 29 PASS ctx.isPointInStroke([],20,70) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Pat h2D'..
29 PASS ctx.isPointInStroke({},120,70) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Pa th2D'.. 30 PASS ctx.isPointInStroke({},120,70) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Pa th2D'..
30 31
31 Set lineWidth = 10.0 32 Set lineWidth = 10.0
32 PASS ctx.isPointInStroke(path,22,22) is true 33 PASS ctx.isPointInStroke(path,22,22) is true
33 PASS ctx.isPointInStroke(path,118,22) is true 34 PASS ctx.isPointInStroke(path,118,22) is true
34 PASS ctx.isPointInStroke(path,22,118) is true 35 PASS ctx.isPointInStroke(path,22,118) is true
35 PASS ctx.isPointInStroke(path,118,118) is true 36 PASS ctx.isPointInStroke(path,118,118) is true
36 PASS ctx.isPointInStroke(path,70,18) is true 37 PASS ctx.isPointInStroke(path,70,18) is true
37 PASS ctx.isPointInStroke(path,122,70) is true 38 PASS ctx.isPointInStroke(path,122,70) is true
(...skipping 30 matching lines...) Expand all
68 PASS ctx.isPointInStroke(path,35,10) is true 69 PASS ctx.isPointInStroke(path,35,10) is true
69 70
70 Check dashOffset = 10 71 Check dashOffset = 10
71 PASS ctx.isPointInStroke(path,15,10) is false 72 PASS ctx.isPointInStroke(path,15,10) is false
72 PASS ctx.isPointInStroke(path,25,10) is true 73 PASS ctx.isPointInStroke(path,25,10) is true
73 PASS ctx.isPointInStroke(path,35,10) is false 74 PASS ctx.isPointInStroke(path,35,10) is false
74 PASS successfullyParsed is true 75 PASS successfullyParsed is true
75 76
76 TEST COMPLETE 77 TEST COMPLETE
77 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698