1 Test for invalid input of webkitLineDash and webkitLineDashOffset
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS trySettingLineDash([1, 2, 3]) is [1, 2, 3]
7 FAIL trySettingLineDash([1, -1]) should be 1.5,2.5. Was 1,-1.
8 FAIL trySettingLineDash([1, Infinity]) should be 1.5,2.5. Was 1,Infinity.
9 FAIL trySettingLineDash([1, -Infinity]) should be 1.5,2.5. Was 1,-Infinity.
10 FAIL trySettingLineDash([1, NaN]) should be 1.5,2.5. Was 1,NaN.
11 FAIL trySettingLineDash([1, 'string']) should be 1.5,2.5. Was 1,string.
12 PASS trySettingLineDashOffset(0.5) is 0.5
13 PASS trySettingLineDashOffset(-0.5) is -0.5
14 FAIL trySettingLineDashOffset(Infinity) should be 1.5. Was Infinity.
15 FAIL trySettingLineDashOffset(-Infinity) should be 1.5. Was -Infinity.
16 FAIL trySettingLineDashOffset(NaN) should be 1.5. Was NaN.
17 FAIL trySettingLineDashOffset('string') should be 1.5 (of type number). Was string (of type string).
18 PASS successfullyParsed is true