Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/radialGradient-infinite-values.js

Issue 2701053003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 description(
2 'This test checks createRadialGradient with infinite values'
3 );
4
5 var ctx = document.createElement('canvas').getContext('2d');
6
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)");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698