Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / resources / canvas-2d-imageData-create-nonfinite.js
blob584881cdeaba94462aee2aedf6b2ab4f0c8e82ae
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)");