2 'This test checks createLinearGradient with infinite values'
5 var ctx = document.createElement('canvas').getContext('2d');
7 shouldThrow("ctx.createLinearGradient(0, 0, 100, NaN)");
8 shouldThrow("ctx.createLinearGradient(0, 0, 100, Infinity)");
9 shouldThrow("ctx.createLinearGradient(0, 0, 100, -Infinity)");
10 shouldThrow("ctx.createLinearGradient(0, 0, NaN, 100)");
11 shouldThrow("ctx.createLinearGradient(0, 0, Infinity, 100)");
12 shouldThrow("ctx.createLinearGradient(0, 0, -Infinity, 100)");
13 shouldThrow("ctx.createLinearGradient(0, NaN, 100, 100)");
14 shouldThrow("ctx.createLinearGradient(0, Infinity, 100, 100)");
15 shouldThrow("ctx.createLinearGradient(0, -Infinity, 100, 100)");
16 shouldThrow("ctx.createLinearGradient(NaN, 0, 100, 100)");
17 shouldThrow("ctx.createLinearGradient(Infinity, 0, 100, 100)");
18 shouldThrow("ctx.createLinearGradient(-Infinity, 0, 100, 100)");