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

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

Issue 226953004: Remove get/set currentPath in canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
(Empty)
1 Test the behavior of currentPath in Canvas
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Create path object, replace current context path with the path of this object.
7 PASS ctx.isPointInPath(49,49) is false
8 PASS ctx.isPointInPath(99,99) is false
9 PASS ctx.isPointInPath(149,149) is false
10 PASS ctx.isPointInPath(199,199) is false
11 PASS ctx.isPointInPath(249,249) is false
12 PASS ctx.isPointInPath(49,49) is true
13 PASS ctx.isPointInPath(99,99) is true
14 PASS ctx.isPointInPath(149,149) is true
15 PASS ctx.isPointInPath(199,199) is true
16 PASS ctx.isPointInPath(249,249) is false
17
18 Add new segment to context path and check that this is not added to the path obj ect (not live).
19 PASS ctx.isPointInPath(49,49) is true
20 PASS ctx.isPointInPath(99,99) is true
21 PASS ctx.isPointInPath(149,149) is true
22 PASS ctx.isPointInPath(199,199) is true
23 PASS ctx.isPointInPath(249,249) is true
24 PASS ctx.isPointInPath(49,49) is true
25 PASS ctx.isPointInPath(99,99) is true
26 PASS ctx.isPointInPath(149,149) is true
27 PASS ctx.isPointInPath(199,199) is true
28 PASS ctx.isPointInPath(249,249) is false
29
30 Test that path object can get applied to transformed context, respecting the CTM .
31 PASS ctx.isPointInPath(49,49) is false
32 PASS ctx.isPointInPath(99,99) is false
33 PASS ctx.isPointInPath(149,149) is true
34 PASS ctx.isPointInPath(199,199) is true
35 PASS ctx.isPointInPath(249,249) is true
36
37 Test that currentPath returns a path object.
38 PASS p is null
39 PASS p is an instance of Path2D
40
41 Create context path and test that it exists.
42 PASS ctx.isPointInPath(49,49) is true
43 PASS ctx.isPointInPath(99,99) is true
44 PASS ctx.isPointInPath(149,149) is true
45 PASS ctx.isPointInPath(199,199) is true
46 PASS ctx.isPointInPath(249,249) is false
47
48 Clear context path.
49 PASS ctx.isPointInPath(49,49) is false
50 PASS ctx.isPointInPath(99,99) is false
51 PASS ctx.isPointInPath(149,149) is false
52 PASS ctx.isPointInPath(199,199) is false
53 PASS ctx.isPointInPath(249,249) is false
54
55 Apply stored (non-live) path object back to context.
56 PASS ctx.isPointInPath(49,49) is true
57 PASS ctx.isPointInPath(99,99) is true
58 PASS ctx.isPointInPath(149,149) is true
59 PASS ctx.isPointInPath(199,199) is true
60 PASS ctx.isPointInPath(249,249) is false
61
62 Transform CTM in the process of adding segments to context path. Check that curr entPath's path object archive these transformations.
63 PASS ctx.isPointInPath(49,49) is true
64 PASS ctx.isPointInPath(99,99) is true
65 PASS ctx.isPointInPath(149,149) is false
66 PASS ctx.isPointInPath(199,199) is true
67 PASS ctx.isPointInPath(249,249) is true
68 Clear current path on object and check that it is cleaned up.
69 PASS ctx.isPointInPath(49,49) is false
70 PASS ctx.isPointInPath(99,99) is false
71 PASS ctx.isPointInPath(149,149) is false
72 PASS ctx.isPointInPath(199,199) is false
73 PASS ctx.isPointInPath(249,249) is false
74
75 Apply path back to context path.
76 PASS ctx.isPointInPath(49,49) is true
77 PASS ctx.isPointInPath(99,99) is true
78 PASS ctx.isPointInPath(149,149) is false
79 PASS ctx.isPointInPath(199,199) is true
80 PASS ctx.isPointInPath(249,249) is true
81 PASS successfullyParsed is true
82
83 TEST COMPLETE
84
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698