Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / script-tests / linearGradient-infinite-values.js
bloba3f886aaf8ecac18705c3181e4c125808a1e270c
1 description(
2 'This test checks createLinearGradient with infinite values'
3 );
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)");