Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / canvas / test / test_2d.imageData.put.nonfinite.html
blobc54d38f5800e91f02af0dd4faf1f414b4beba428
1 <!DOCTYPE HTML>
2 <title>Canvas test: 2d.imageData.put.nonfinite</title>
3 <!-- Testing: putImageData() throws NOT_SUPPORTED_ERR if arguments are not finite -->
4 <script src="/MochiKit/MochiKit.js"></script>
5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
7 <body>
8 <canvas id="c" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
9 <script>
11 SimpleTest.waitForExplicitFinish();
12 MochiKit.DOM.addLoadEvent(function () {
14 var canvas = document.getElementById('c');
15 var ctx = canvas.getContext('2d');
17 var imgdata = ctx.getImageData(0, 0, 10, 10);
18 var _thrown = undefined; try {
19 ctx.putImageData(imgdata, Infinity, 10);
20 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
21 var _thrown = undefined; try {
22 ctx.putImageData(imgdata, -Infinity, 10);
23 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
24 var _thrown = undefined; try {
25 ctx.putImageData(imgdata, NaN, 10);
26 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
27 var _thrown = undefined; try {
28 ctx.putImageData(imgdata, 10, Infinity);
29 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
30 var _thrown = undefined; try {
31 ctx.putImageData(imgdata, 10, -Infinity);
32 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
33 var _thrown = undefined; try {
34 ctx.putImageData(imgdata, 10, NaN);
35 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
36 var _thrown = undefined; try {
37 ctx.putImageData(imgdata, Infinity, Infinity);
38 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
39 var _thrown = undefined; try {
40 ctx.putImageData(imgdata, Infinity, 10, 10, 10, 10, 10);
41 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
42 var _thrown = undefined; try {
43 ctx.putImageData(imgdata, -Infinity, 10, 10, 10, 10, 10);
44 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
45 var _thrown = undefined; try {
46 ctx.putImageData(imgdata, NaN, 10, 10, 10, 10, 10);
47 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
48 var _thrown = undefined; try {
49 ctx.putImageData(imgdata, 10, Infinity, 10, 10, 10, 10);
50 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
51 var _thrown = undefined; try {
52 ctx.putImageData(imgdata, 10, -Infinity, 10, 10, 10, 10);
53 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
54 var _thrown = undefined; try {
55 ctx.putImageData(imgdata, 10, NaN, 10, 10, 10, 10);
56 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
57 var _thrown = undefined; try {
58 ctx.putImageData(imgdata, 10, 10, Infinity, 10, 10, 10);
59 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
60 var _thrown = undefined; try {
61 ctx.putImageData(imgdata, 10, 10, -Infinity, 10, 10, 10);
62 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
63 var _thrown = undefined; try {
64 ctx.putImageData(imgdata, 10, 10, NaN, 10, 10, 10);
65 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
66 var _thrown = undefined; try {
67 ctx.putImageData(imgdata, 10, 10, 10, Infinity, 10, 10);
68 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
69 var _thrown = undefined; try {
70 ctx.putImageData(imgdata, 10, 10, 10, -Infinity, 10, 10);
71 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
72 var _thrown = undefined; try {
73 ctx.putImageData(imgdata, 10, 10, 10, NaN, 10, 10);
74 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
75 var _thrown = undefined; try {
76 ctx.putImageData(imgdata, 10, 10, 10, 10, Infinity, 10);
77 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
78 var _thrown = undefined; try {
79 ctx.putImageData(imgdata, 10, 10, 10, 10, -Infinity, 10);
80 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
81 var _thrown = undefined; try {
82 ctx.putImageData(imgdata, 10, 10, 10, 10, NaN, 10);
83 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
84 var _thrown = undefined; try {
85 ctx.putImageData(imgdata, 10, 10, 10, 10, 10, Infinity);
86 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
87 var _thrown = undefined; try {
88 ctx.putImageData(imgdata, 10, 10, 10, 10, 10, -Infinity);
89 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
90 var _thrown = undefined; try {
91 ctx.putImageData(imgdata, 10, 10, 10, 10, 10, NaN);
92 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
93 var _thrown = undefined; try {
94 ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, 10, 10);
95 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
96 var _thrown = undefined; try {
97 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, 10, 10);
98 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
99 var _thrown = undefined; try {
100 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, 10, 10);
101 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
102 var _thrown = undefined; try {
103 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, Infinity, 10);
104 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
105 var _thrown = undefined; try {
106 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity);
107 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
108 var _thrown = undefined; try {
109 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, Infinity, 10, Infinity);
110 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
111 var _thrown = undefined; try {
112 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, Infinity, 10);
113 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
114 var _thrown = undefined; try {
115 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, Infinity, Infinity);
116 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
117 var _thrown = undefined; try {
118 ctx.putImageData(imgdata, Infinity, Infinity, Infinity, 10, 10, Infinity);
119 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
120 var _thrown = undefined; try {
121 ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, 10, 10);
122 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
123 var _thrown = undefined; try {
124 ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, Infinity, 10);
125 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
126 var _thrown = undefined; try {
127 ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, Infinity, Infinity);
128 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
129 var _thrown = undefined; try {
130 ctx.putImageData(imgdata, Infinity, Infinity, 10, Infinity, 10, Infinity);
131 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
132 var _thrown = undefined; try {
133 ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, Infinity, 10);
134 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
135 var _thrown = undefined; try {
136 ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, Infinity, Infinity);
137 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
138 var _thrown = undefined; try {
139 ctx.putImageData(imgdata, Infinity, Infinity, 10, 10, 10, Infinity);
140 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
141 var _thrown = undefined; try {
142 ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, 10, 10);
143 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
144 var _thrown = undefined; try {
145 ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, 10, 10);
146 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
147 var _thrown = undefined; try {
148 ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, Infinity, 10);
149 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
150 var _thrown = undefined; try {
151 ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, Infinity, Infinity);
152 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
153 var _thrown = undefined; try {
154 ctx.putImageData(imgdata, Infinity, 10, Infinity, Infinity, 10, Infinity);
155 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
156 var _thrown = undefined; try {
157 ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, Infinity, 10);
158 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
159 var _thrown = undefined; try {
160 ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, Infinity, Infinity);
161 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
162 var _thrown = undefined; try {
163 ctx.putImageData(imgdata, Infinity, 10, Infinity, 10, 10, Infinity);
164 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
165 var _thrown = undefined; try {
166 ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, 10, 10);
167 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
168 var _thrown = undefined; try {
169 ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, Infinity, 10);
170 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
171 var _thrown = undefined; try {
172 ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, Infinity, Infinity);
173 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
174 var _thrown = undefined; try {
175 ctx.putImageData(imgdata, Infinity, 10, 10, Infinity, 10, Infinity);
176 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
177 var _thrown = undefined; try {
178 ctx.putImageData(imgdata, Infinity, 10, 10, 10, Infinity, 10);
179 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
180 var _thrown = undefined; try {
181 ctx.putImageData(imgdata, Infinity, 10, 10, 10, Infinity, Infinity);
182 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
183 var _thrown = undefined; try {
184 ctx.putImageData(imgdata, Infinity, 10, 10, 10, 10, Infinity);
185 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
186 var _thrown = undefined; try {
187 ctx.putImageData(imgdata, 10, Infinity, Infinity, 10, 10, 10);
188 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
189 var _thrown = undefined; try {
190 ctx.putImageData(imgdata, 10, Infinity, Infinity, Infinity, 10, 10);
191 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
192 var _thrown = undefined; try {
193 ctx.putImageData(imgdata, 10, Infinity, Infinity, Infinity, Infinity, 10);
194 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
195 var _thrown = undefined; try {
196 ctx.putImageData(imgdata, 10, Infinity, Infinity, Infinity, Infinity, Infinity);
197 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
198 var _thrown = undefined; try {
199 ctx.putImageData(imgdata, 10, Infinity, Infinity, Infinity, 10, Infinity);
200 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
201 var _thrown = undefined; try {
202 ctx.putImageData(imgdata, 10, Infinity, Infinity, 10, Infinity, 10);
203 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
204 var _thrown = undefined; try {
205 ctx.putImageData(imgdata, 10, Infinity, Infinity, 10, Infinity, Infinity);
206 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
207 var _thrown = undefined; try {
208 ctx.putImageData(imgdata, 10, Infinity, Infinity, 10, 10, Infinity);
209 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
210 var _thrown = undefined; try {
211 ctx.putImageData(imgdata, 10, Infinity, 10, Infinity, 10, 10);
212 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
213 var _thrown = undefined; try {
214 ctx.putImageData(imgdata, 10, Infinity, 10, Infinity, Infinity, 10);
215 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
216 var _thrown = undefined; try {
217 ctx.putImageData(imgdata, 10, Infinity, 10, Infinity, Infinity, Infinity);
218 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
219 var _thrown = undefined; try {
220 ctx.putImageData(imgdata, 10, Infinity, 10, Infinity, 10, Infinity);
221 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
222 var _thrown = undefined; try {
223 ctx.putImageData(imgdata, 10, Infinity, 10, 10, Infinity, 10);
224 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
225 var _thrown = undefined; try {
226 ctx.putImageData(imgdata, 10, Infinity, 10, 10, Infinity, Infinity);
227 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
228 var _thrown = undefined; try {
229 ctx.putImageData(imgdata, 10, Infinity, 10, 10, 10, Infinity);
230 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
231 var _thrown = undefined; try {
232 ctx.putImageData(imgdata, 10, 10, Infinity, Infinity, 10, 10);
233 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
234 var _thrown = undefined; try {
235 ctx.putImageData(imgdata, 10, 10, Infinity, Infinity, Infinity, 10);
236 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
237 var _thrown = undefined; try {
238 ctx.putImageData(imgdata, 10, 10, Infinity, Infinity, Infinity, Infinity);
239 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
240 var _thrown = undefined; try {
241 ctx.putImageData(imgdata, 10, 10, Infinity, Infinity, 10, Infinity);
242 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
243 var _thrown = undefined; try {
244 ctx.putImageData(imgdata, 10, 10, Infinity, 10, Infinity, 10);
245 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
246 var _thrown = undefined; try {
247 ctx.putImageData(imgdata, 10, 10, Infinity, 10, Infinity, Infinity);
248 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
249 var _thrown = undefined; try {
250 ctx.putImageData(imgdata, 10, 10, Infinity, 10, 10, Infinity);
251 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
252 var _thrown = undefined; try {
253 ctx.putImageData(imgdata, 10, 10, 10, Infinity, Infinity, 10);
254 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
255 var _thrown = undefined; try {
256 ctx.putImageData(imgdata, 10, 10, 10, Infinity, Infinity, Infinity);
257 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
258 var _thrown = undefined; try {
259 ctx.putImageData(imgdata, 10, 10, 10, Infinity, 10, Infinity);
260 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
261 var _thrown = undefined; try {
262 ctx.putImageData(imgdata, 10, 10, 10, 10, Infinity, Infinity);
263 } catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
265 SimpleTest.finish();
268 </script>