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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/pixel-manipulation/2d.imageData.put.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.imageData.put.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.imageData.put.nonfinite</h1>
9 <p class="desc">putImageData() throws TypeError if arguments are not finite</p>
10
11
12 <script>
13 var t = async_test("putImageData() throws TypeError if arguments are not finite" );
14 t.step(function() {
15
16 var offscreenCanvas = new OffscreenCanvas(100, 50);
17 var ctx = offscreenCanvas.getContext('2d');
18
19 var imgdata = ctx.getImageData(0, 0, 10, 10);
20 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10); });
21 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, -Infinity, 10); });
22 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, NaN, 10); });
23 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty); });
24 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, -Infin ity); });
25 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, NaN); });
26 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity); });
27 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, 10, 10, 10); });
28 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, -Infinity, 10, 10, 10, 10, 10); });
29 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, NaN, 10, 1 0, 10, 10, 10); });
30 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, 10, 10, 10); });
31 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, -Infin ity, 10, 10, 10, 10); });
32 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, NaN, 1 0, 10, 10, 10); });
33 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, 10, 10, 10); });
34 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, -I nfinity, 10, 10, 10); });
35 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, Na N, 10, 10, 10); });
36 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , Infinity, 10, 10); });
37 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , -Infinity, 10, 10); });
38 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , NaN, 10, 10); });
39 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, Infinity, 10); });
40 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, -Infinity, 10); });
41 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, NaN, 10); });
42 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, 10, Infinity); });
43 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, 10, -Infinity); });
44 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, 10, NaN); });
45 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, 10, 10); });
46 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, 10, 10); });
47 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, 10, 10); });
48 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, Infinity, 10); });
49 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity); });
50 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, 10, Infinity); });
51 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, Infinity, 10); });
52 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, Infinity, Infinity); });
53 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, 10, Infinity); });
54 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, 10, 10); });
55 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, Infinity, 10); });
56 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, Infinity, Infinity); });
57 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, 10, Infinity); });
58 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, Infinity, 10); });
59 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, Infinity, Infinity); });
60 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, 10, Infinity); });
61 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, 10, 10); });
62 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, 10, 10); });
63 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, Infinity, 10); });
64 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, Infinity, Infinity); });
65 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, 10, Infinity); });
66 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, Infinity, 10); });
67 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, Infinity, Infinity); });
68 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, 10, Infinity); });
69 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, 10, 10); });
70 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, Infinity, 10); });
71 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, Infinity, Infinity); });
72 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, 10, Infinity); });
73 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, 10, Infinity, 10); });
74 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, 10, Infinity, Infinity); });
75 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, Infinity, 10, 10, 10, 10, Infinity); });
76 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, 10, 10, 10); });
77 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, Infinity, 10, 10); });
78 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, Infinity, Infinity, 10); });
79 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, Infinity, Infinity, Infinity); });
80 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, Infinity, 10, Infinity); });
81 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, 10, Infinity, 10); });
82 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, 10, Infinity, Infinity); });
83 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, Infinity, 10, 10, Infinity); });
84 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, Infinity, 10, 10); });
85 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, Infinity, Infinity, 10); });
86 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, Infinity, Infinity, Infinity); });
87 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, Infinity, 10, Infinity); });
88 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, 10, Infinity, 10); });
89 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, 10, Infinity, Infinity); });
90 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, Infini ty, 10, 10, 10, Infinity); });
91 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, Infinity, 10, 10); });
92 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, Infinity, Infinity, 10); });
93 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, Infinity, Infinity, Infinity); });
94 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, Infinity, 10, Infinity); });
95 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, 10, Infinity, 10); });
96 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, 10, Infinity, Infinity); });
97 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, In finity, 10, 10, Infinity); });
98 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , Infinity, Infinity, 10); });
99 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , Infinity, Infinity, Infinity); });
100 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , Infinity, 10, Infinity); });
101 assert_throws(new TypeError(), function() { ctx.putImageData(imgdata, 10, 10, 10 , 10, Infinity, Infinity); });
102
103 t.done();
104
105 });
106 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698