1 Test that setLineDash converts input argument into a Web IDL sequence
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 * Test passing a Array as input.
10 * Test passing a Int8Array as input.
12 PASS lineDash[1] is 15
13 PASS lineDash[2] is 25
14 * Test passing a Int16Array as input.
16 PASS lineDash[1] is 15
17 PASS lineDash[2] is 25
18 * Test passing a Int32Array as input.
20 PASS lineDash[1] is 15
21 PASS lineDash[2] is 25
22 * Test passing a Uint8Array as input.
24 PASS lineDash[1] is 15
25 PASS lineDash[2] is 25
26 * Test passing a Uint16Array as input.
28 PASS lineDash[1] is 15
29 PASS lineDash[2] is 25
30 * Test passing a Uint32Array as input.
32 PASS lineDash[1] is 15
33 PASS lineDash[2] is 25
34 * Test passing a Float32Array as input.
36 PASS lineDash[1] is 15
37 PASS lineDash[2] is 25
38 * Test passing a Float64Array as input.
40 PASS lineDash[1] is 15
41 PASS lineDash[2] is 25
42 * Test passing a Uint8ClampedArray as input.
44 PASS lineDash[1] is 15
45 PASS lineDash[2] is 25
46 * Test passing a Object as input.
48 PASS lineDash[1] is 15
49 PASS lineDash[2] is 25
50 * Test passing a Date as input.
51 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
52 * Test passing a RegExp as input.
53 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
54 * Test passing an Object without length as input.
55 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
56 * Test passing a Number as input.
57 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
58 * Test passing a String as input.
59 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
60 * Test passing a Boolean as input.
61 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
62 * Test passing null as input.
63 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
64 * Test passing undefined as input.
65 PASS ctx.setLineDash(inputArray) threw exception TypeError: Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The 1st argument is neither an array, nor does it have indexed properties..
66 PASS successfullyParsed is true