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

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

Issue 232913004: Use StrictTypeChecking for methods on CRC2D that accepts Path2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update some more expectations. 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 | Annotate | Revision Log
OLDNEW
1 Test addPath() method. 1 Test addPath() method.
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 Test addPath() with transform as identity matrix. 6 Test addPath() with transform as identity matrix.
7 PASS imgdata[4] is 255 7 PASS imgdata[4] is 255
8 PASS imgdata[5] is 255 8 PASS imgdata[5] is 255
9 PASS imgdata[6] is 0 9 PASS imgdata[6] is 0
10 PASS imgdata[7] is 255 10 PASS imgdata[7] is 255
11 11
12 Test addPath() with transform as translate(100, -100). 12 Test addPath() with transform as translate(100, -100).
13 PASS imgdata[4] is 255 13 PASS imgdata[4] is 255
14 PASS imgdata[5] is 255 14 PASS imgdata[5] is 255
15 PASS imgdata[6] is 0 15 PASS imgdata[6] is 0
16 PASS imgdata[7] is 255 16 PASS imgdata[7] is 255
17 17
18 Test addPath() with non-invertible transform. 18 Test addPath() with non-invertible transform.
19 PASS imgdata[4] is not 255 19 PASS imgdata[4] is not 255
20 PASS imgdata[5] is not 255 20 PASS imgdata[5] is not 255
21 PASS imgdata[6] is 0 21 PASS imgdata[6] is 0
22 PASS imgdata[7] is not 255 22 PASS imgdata[7] is not 255
23 23
24 Test addPath() with transform as null or invalid type. 24 Test addPath() with transform as null or invalid type.
25 PASS p7.addPath(p8, []) threw exception TypeError: Failed to execute 'addPath' o n 'Path2D': parameter 2 is not of type 'SVGMatrix'..
26 PASS p7.addPath(p8, {}) threw exception TypeError: Failed to execute 'addPath' o n 'Path2D': parameter 2 is not of type 'SVGMatrix'..
25 PASS imgdata[4] is 255 27 PASS imgdata[4] is 255
26 PASS imgdata[5] is 0 28 PASS imgdata[5] is 0
27 PASS imgdata[6] is 0 29 PASS imgdata[6] is 0
28 PASS imgdata[7] is 255 30 PASS imgdata[7] is 255
29 31
30 Test addPath() with transform omitted. 32 Test addPath() with transform omitted.
31 PASS imgdata[0] is 255 33 PASS imgdata[0] is 255
32 PASS imgdata[1] is 0 34 PASS imgdata[1] is 0
33 PASS imgdata[2] is 0 35 PASS imgdata[2] is 0
34 PASS imgdata[3] is 255 36 PASS imgdata[3] is 255
35 37
36 Test addPath() with path as null and invalid type 38 Test addPath() with path as null and invalid type
37 PASS p7.addPath(null, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': The 1st argument provided is either null, or an invalid Path object .. 39 PASS p7.addPath(null, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
38 PASS p7.addPath([], m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': The 1st argument provided is either null, or an invalid Path object.. 40 PASS p7.addPath([], m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
39 PASS p7.addPath({}, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': The 1st argument provided is either null, or an invalid Path object.. 41 PASS p7.addPath({}, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
40 42
41 PASS successfullyParsed is true 43 PASS successfullyParsed is true
42 44
43 TEST COMPLETE 45 TEST COMPLETE
44 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698