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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.gradient.linear.nonfinite.worker.js

Issue 2553473002: Add offscreen-canvas to the list of wpt directories to skip. (Closed)
Patch Set: Created 4 years 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 // DO NOT EDIT! This test has been generated by tools/gentest.py.
2 // OffscreenCanvas test in a worker:2d.gradient.linear.nonfinite
3 // Description:createLinearGradient() throws TypeError if arguments are not fini te
4 // Note:
5
6 importScripts("/resources/testharness.js");
7 importScripts("/common/canvas-tests.js");
8
9 var t = async_test("createLinearGradient() throws TypeError if arguments are not finite");
10 t.step(function() {
11
12 var offscreenCanvas = new OffscreenCanvas(100, 50);
13 var ctx = offscreenCanvas.getContext('2d');
14
15 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0 , 1, 0); });
16 assert_throws(new TypeError(), function() { ctx.createLinearGradient(-Infinity, 0, 1, 0); });
17 assert_throws(new TypeError(), function() { ctx.createLinearGradient(NaN, 0, 1, 0); });
18 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity , 1, 0); });
19 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, -Infinit y, 1, 0); });
20 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, NaN, 1, 0); });
21 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, Infin ity, 0); });
22 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, -Infi nity, 0); });
23 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, NaN, 0); });
24 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, 1, In finity); });
25 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, 1, -I nfinity); });
26 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, 1, Na N); });
27 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, I nfinity, 1, 0); });
28 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, I nfinity, Infinity, 0); });
29 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, I nfinity, Infinity, Infinity); });
30 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, I nfinity, 1, Infinity); });
31 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0 , Infinity, 0); });
32 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0 , Infinity, Infinity); });
33 assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0 , 1, Infinity); });
34 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity , Infinity, 0); });
35 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity , Infinity, Infinity); });
36 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity , 1, Infinity); });
37 assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, Infin ity, Infinity); });
38
39 t.done();
40
41 });
42 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698