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

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

Issue 234903003: Should throw TypeError instead of TypeMismatchError (canvas) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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
(...skipping 10 matching lines...) Expand all
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 imgdata[4] is 255 25 PASS imgdata[4] is 255
26 PASS imgdata[5] is 0 26 PASS imgdata[5] is 0
27 PASS imgdata[6] is 0 27 PASS imgdata[6] is 0
28 PASS imgdata[7] is 255 28 PASS imgdata[7] is 255
29 29
30 Test addPath() with path as null and invalid type 30 Test addPath() with path as null and invalid type
31 PASS p7.addPath(null, m) threw exception TypeMismatchError: Failed to execute 'a ddPath' on 'Path2D': The 1st argument provided is either null, or an invalid Pat h object.. 31 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 ..
32 PASS p7.addPath([], m) threw exception TypeMismatchError: Failed to execute 'add Path' on 'Path2D': The 1st argument provided is either null, or an invalid Path object.. 32 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..
33 PASS p7.addPath({}, m) threw exception TypeMismatchError: Failed to execute 'add Path' on 'Path2D': The 1st argument provided is either null, or an invalid Path object.. 33 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..
34 34
35 PASS successfullyParsed is true 35 PASS successfullyParsed is true
36 36
37 TEST COMPLETE 37 TEST COMPLETE
38 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698