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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/path-objects/2d.path.arcTo.nonfinite.html

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 <!DOCTYPE html>
2 <!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
3 <title>OffscreenCanvas test: 2d.path.arcTo.nonfinite</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="/common/canvas-tests.js"></script>
7
8 <h1>2d.path.arcTo.nonfinite</h1>
9 <p class="desc">arcTo() with Infinity/NaN is ignored</p>
10
11
12 <script>
13 var t = async_test("arcTo() with Infinity/NaN is ignored");
14 t.step(function() {
15
16 var offscreenCanvas = new OffscreenCanvas(100, 50);
17 var ctx = offscreenCanvas.getContext('2d');
18
19 ctx.moveTo(0, 0);
20 ctx.lineTo(100, 0);
21 ctx.arcTo(Infinity, 50, 0, 50, 0);
22 ctx.arcTo(-Infinity, 50, 0, 50, 0);
23 ctx.arcTo(NaN, 50, 0, 50, 0);
24 ctx.arcTo(0, Infinity, 0, 50, 0);
25 ctx.arcTo(0, -Infinity, 0, 50, 0);
26 ctx.arcTo(0, NaN, 0, 50, 0);
27 ctx.arcTo(0, 50, Infinity, 50, 0);
28 ctx.arcTo(0, 50, -Infinity, 50, 0);
29 ctx.arcTo(0, 50, NaN, 50, 0);
30 ctx.arcTo(0, 50, 0, Infinity, 0);
31 ctx.arcTo(0, 50, 0, -Infinity, 0);
32 ctx.arcTo(0, 50, 0, NaN, 0);
33 ctx.arcTo(0, 50, 0, 50, Infinity);
34 ctx.arcTo(0, 50, 0, 50, -Infinity);
35 ctx.arcTo(0, 50, 0, 50, NaN);
36 ctx.arcTo(Infinity, Infinity, 0, 50, 0);
37 ctx.arcTo(Infinity, Infinity, Infinity, 50, 0);
38 ctx.arcTo(Infinity, Infinity, Infinity, Infinity, 0);
39 ctx.arcTo(Infinity, Infinity, Infinity, Infinity, Infinity);
40 ctx.arcTo(Infinity, Infinity, Infinity, 50, Infinity);
41 ctx.arcTo(Infinity, Infinity, 0, Infinity, 0);
42 ctx.arcTo(Infinity, Infinity, 0, Infinity, Infinity);
43 ctx.arcTo(Infinity, Infinity, 0, 50, Infinity);
44 ctx.arcTo(Infinity, 50, Infinity, 50, 0);
45 ctx.arcTo(Infinity, 50, Infinity, Infinity, 0);
46 ctx.arcTo(Infinity, 50, Infinity, Infinity, Infinity);
47 ctx.arcTo(Infinity, 50, Infinity, 50, Infinity);
48 ctx.arcTo(Infinity, 50, 0, Infinity, 0);
49 ctx.arcTo(Infinity, 50, 0, Infinity, Infinity);
50 ctx.arcTo(Infinity, 50, 0, 50, Infinity);
51 ctx.arcTo(0, Infinity, Infinity, 50, 0);
52 ctx.arcTo(0, Infinity, Infinity, Infinity, 0);
53 ctx.arcTo(0, Infinity, Infinity, Infinity, Infinity);
54 ctx.arcTo(0, Infinity, Infinity, 50, Infinity);
55 ctx.arcTo(0, Infinity, 0, Infinity, 0);
56 ctx.arcTo(0, Infinity, 0, Infinity, Infinity);
57 ctx.arcTo(0, Infinity, 0, 50, Infinity);
58 ctx.arcTo(0, 50, Infinity, Infinity, 0);
59 ctx.arcTo(0, 50, Infinity, Infinity, Infinity);
60 ctx.arcTo(0, 50, Infinity, 50, Infinity);
61 ctx.arcTo(0, 50, 0, Infinity, Infinity);
62 ctx.lineTo(100, 50);
63 ctx.lineTo(0, 50);
64 ctx.fillStyle = '#0f0';
65 ctx.fill();
66 _assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");
67 _assertPixel(offscreenCanvas, 90,45, 0,255,0,255, "90,45", "0,255,0,255");
68
69 t.done();
70
71 });
72 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698