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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/path-objects/2d.path.arcTo.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.path.arcTo.nonfinite
3 // Description:arcTo() with Infinity/NaN is ignored
4 // Note:
5
6 importScripts("/resources/testharness.js");
7 importScripts("/common/canvas-tests.js");
8
9 var t = async_test("arcTo() with Infinity/NaN is ignored");
10 t.step(function() {
11
12 var offscreenCanvas = new OffscreenCanvas(100, 50);
13 var ctx = offscreenCanvas.getContext('2d');
14
15 ctx.moveTo(0, 0);
16 ctx.lineTo(100, 0);
17 ctx.arcTo(Infinity, 50, 0, 50, 0);
18 ctx.arcTo(-Infinity, 50, 0, 50, 0);
19 ctx.arcTo(NaN, 50, 0, 50, 0);
20 ctx.arcTo(0, Infinity, 0, 50, 0);
21 ctx.arcTo(0, -Infinity, 0, 50, 0);
22 ctx.arcTo(0, NaN, 0, 50, 0);
23 ctx.arcTo(0, 50, Infinity, 50, 0);
24 ctx.arcTo(0, 50, -Infinity, 50, 0);
25 ctx.arcTo(0, 50, NaN, 50, 0);
26 ctx.arcTo(0, 50, 0, Infinity, 0);
27 ctx.arcTo(0, 50, 0, -Infinity, 0);
28 ctx.arcTo(0, 50, 0, NaN, 0);
29 ctx.arcTo(0, 50, 0, 50, Infinity);
30 ctx.arcTo(0, 50, 0, 50, -Infinity);
31 ctx.arcTo(0, 50, 0, 50, NaN);
32 ctx.arcTo(Infinity, Infinity, 0, 50, 0);
33 ctx.arcTo(Infinity, Infinity, Infinity, 50, 0);
34 ctx.arcTo(Infinity, Infinity, Infinity, Infinity, 0);
35 ctx.arcTo(Infinity, Infinity, Infinity, Infinity, Infinity);
36 ctx.arcTo(Infinity, Infinity, Infinity, 50, Infinity);
37 ctx.arcTo(Infinity, Infinity, 0, Infinity, 0);
38 ctx.arcTo(Infinity, Infinity, 0, Infinity, Infinity);
39 ctx.arcTo(Infinity, Infinity, 0, 50, Infinity);
40 ctx.arcTo(Infinity, 50, Infinity, 50, 0);
41 ctx.arcTo(Infinity, 50, Infinity, Infinity, 0);
42 ctx.arcTo(Infinity, 50, Infinity, Infinity, Infinity);
43 ctx.arcTo(Infinity, 50, Infinity, 50, Infinity);
44 ctx.arcTo(Infinity, 50, 0, Infinity, 0);
45 ctx.arcTo(Infinity, 50, 0, Infinity, Infinity);
46 ctx.arcTo(Infinity, 50, 0, 50, Infinity);
47 ctx.arcTo(0, Infinity, Infinity, 50, 0);
48 ctx.arcTo(0, Infinity, Infinity, Infinity, 0);
49 ctx.arcTo(0, Infinity, Infinity, Infinity, Infinity);
50 ctx.arcTo(0, Infinity, Infinity, 50, Infinity);
51 ctx.arcTo(0, Infinity, 0, Infinity, 0);
52 ctx.arcTo(0, Infinity, 0, Infinity, Infinity);
53 ctx.arcTo(0, Infinity, 0, 50, Infinity);
54 ctx.arcTo(0, 50, Infinity, Infinity, 0);
55 ctx.arcTo(0, 50, Infinity, Infinity, Infinity);
56 ctx.arcTo(0, 50, Infinity, 50, Infinity);
57 ctx.arcTo(0, 50, 0, Infinity, Infinity);
58 ctx.lineTo(100, 50);
59 ctx.lineTo(0, 50);
60 ctx.fillStyle = '#0f0';
61 ctx.fill();
62 _assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");
63 _assertPixel(offscreenCanvas, 90,45, 0,255,0,255, "90,45", "0,255,0,255");
64
65 t.done();
66
67 });
68 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698