1 description("Test the argument bounds of canvas createImageData.");
3 var canvas = document.getElementById('canvas');
4 var ctx = canvas.getContext('2d');
6 shouldThrow("ctx.createImageData(Infinity, Infinity)");
7 shouldThrow("ctx.createImageData(Infinity, 10)");
8 shouldThrow("ctx.createImageData(-Infinity, 10)");
9 shouldThrow("ctx.createImageData(10, Infinity)");
10 shouldThrow("ctx.createImageData(10, -Infinity)");
11 shouldThrow("ctx.createImageData(NaN, 10)");
12 shouldThrow("ctx.createImageData(10, NaN)");