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