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

Side by Side Diff: LayoutTests/fast/canvas/canvas-lineDash-input-sequence-expected.txt

Issue 38063003: Improve TypeError messages from failed array conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improve TypeError messages from failed array conversions. Created 7 years, 1 month 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 that setLineDash converts input argument into a Web IDL sequence 1 Test that setLineDash converts input argument into a Web IDL sequence
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 passing a Array as input. 6 * Test passing a Array as input.
7 PASS lineDash[0] is 5 7 PASS lineDash[0] is 5
8 PASS lineDash[1] is 15 8 PASS lineDash[1] is 15
9 PASS lineDash[2] is 25 9 PASS lineDash[2] is 25
10 * Test passing a Int8Array as input. 10 * Test passing a Int8Array as input.
(...skipping 30 matching lines...) Expand all
41 PASS lineDash[2] is 25 41 PASS lineDash[2] is 25
42 * Test passing a Uint8ClampedArray as input. 42 * Test passing a Uint8ClampedArray as input.
43 PASS lineDash[0] is 5 43 PASS lineDash[0] is 5
44 PASS lineDash[1] is 15 44 PASS lineDash[1] is 15
45 PASS lineDash[2] is 25 45 PASS lineDash[2] is 25
46 * Test passing a Object as input. 46 * Test passing a Object as input.
47 PASS lineDash[0] is 5 47 PASS lineDash[0] is 5
48 PASS lineDash[1] is 15 48 PASS lineDash[1] is 15
49 PASS lineDash[2] is 25 49 PASS lineDash[2] is 25
50 * Test passing a Date as input. 50 * Test passing a Date as input.
51 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 51 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
52 * Test passing a RegExp as input. 52 * Test passing a RegExp as input.
53 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 53 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
54 * Test passing an Object without length as input. 54 * Test passing an Object without length as input.
55 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 55 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
56 * Test passing a Number as input. 56 * Test passing a Number as input.
57 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 57 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
58 * Test passing a String as input. 58 * Test passing a String as input.
59 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 59 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
60 * Test passing a Boolean as input. 60 * Test passing a Boolean as input.
61 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 61 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
62 * Test passing null as input. 62 * Test passing null as input.
63 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 63 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
64 * Test passing undefined as input. 64 * Test passing undefined as input.
65 PASS ctx.setLineDash(inputArray) threw exception TypeError: Type error. 65 PASS ctx.setLineDash(inputArray) threw exception TypeError: First argument is ne ither an array, nor does it have indexed properties..
66 PASS successfullyParsed is true 66 PASS successfullyParsed is true
67 67
68 TEST COMPLETE 68 TEST COMPLETE
69 69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698