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

Side by Side Diff: LayoutTests/fast/canvas/canvas-currentTransform-expected.txt

Issue 24233004: Support currentTransform in 2D Canvas. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to upstream Created 7 years, 2 months 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 Series of tests to ensure correct behaviour of canvas.currentTransform
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Check initial currentTransform values
7 PASS matrix.a is 1
8 PASS matrix.b is 0
9 PASS matrix.c is 0
10 PASS matrix.d is 1
11 PASS matrix.e is 0
12 PASS matrix.f is 0
13 Changing matrix should not affect the CTM
14 PASS ctx.currentTransform.a is 1
15 PASS ctx.currentTransform.b is 0
16 PASS ctx.currentTransform.c is 0
17 PASS ctx.currentTransform.d is 1
18 PASS ctx.currentTransform.e is 0
19 PASS ctx.currentTransform.f is 0
20 Reset the CTM to the initial matrix
21 PASS matrix.a is 0.5
22 PASS matrix.b is 0
23 PASS matrix.c is 0
24 PASS matrix.d is 0.5
25 PASS matrix.e is 0
26 PASS matrix.f is 0
27 PASS matrix.a is 1
28 PASS matrix.b is 0
29 PASS matrix.c is 0
30 PASS matrix.d is 1
31 PASS matrix.e is 0
32 PASS matrix.f is 0
33 PASS imgdata[4] is 0
34 PASS imgdata[5] is 128
35 PASS imgdata[6] is 0
36 currentTransform should not affect the current path
37 PASS matrix.a is 0.5
38 PASS matrix.b is 0
39 PASS matrix.c is 0
40 PASS matrix.d is 0.5
41 PASS matrix.e is 10
42 PASS matrix.f is 10
43 PASS matrix.a is 1
44 PASS matrix.b is 0
45 PASS matrix.c is 0
46 PASS matrix.d is 1
47 PASS matrix.e is 0
48 PASS matrix.f is 0
49 PASS imgdata[4] is 0
50 PASS imgdata[5] is 128
51 PASS imgdata[6] is 0
52 currentTransform should not affect the CTM outside of save() and restore()
53 PASS matrix.a is 0.5
54 PASS matrix.b is 0
55 PASS matrix.c is 0
56 PASS matrix.d is 0.5
57 PASS matrix.e is 0
58 PASS matrix.f is 0
59 PASS matrix.a is 1
60 PASS matrix.b is 0
61 PASS matrix.c is 0
62 PASS matrix.d is 1
63 PASS matrix.e is 0
64 PASS matrix.f is 0
65 PASS imgdata[4] is 0
66 PASS imgdata[5] is 128
67 PASS imgdata[6] is 0
68 stop drawing on not-invertible CTM
69 PASS matrix.a is 0
70 PASS matrix.b is 0
71 PASS matrix.c is 0
72 PASS matrix.d is 0
73 PASS matrix.e is 0
74 PASS matrix.f is 0
75 PASS imgdata[4] is 0
76 PASS imgdata[5] is 128
77 PASS imgdata[6] is 0
78 currentTransform with a not-invertible matrix should only stop the drawing up to the next restore()
79 PASS matrix.a is 1
80 PASS matrix.b is 0
81 PASS matrix.c is 0
82 PASS matrix.d is 1
83 PASS matrix.e is 0
84 PASS matrix.f is 0
85 PASS matrix.a is 0
86 PASS matrix.b is 0
87 PASS matrix.c is 0
88 PASS matrix.d is 0
89 PASS matrix.e is 0
90 PASS matrix.f is 0
91 PASS matrix.a is 1
92 PASS matrix.b is 0
93 PASS matrix.c is 0
94 PASS matrix.d is 1
95 PASS matrix.e is 0
96 PASS matrix.f is 0
97 PASS imgdata[4] is 0
98 PASS imgdata[5] is 0
99 PASS imgdata[6] is 255
100 currentTransform should set transform although CTM is not-invertible
101 PASS matrix.a is 0
102 PASS matrix.b is 0
103 PASS matrix.c is 0
104 PASS matrix.d is 0
105 PASS matrix.e is 0
106 PASS matrix.f is 0
107 PASS matrix.a is 1
108 PASS matrix.b is 0
109 PASS matrix.c is 0
110 PASS matrix.d is 1
111 PASS matrix.e is 0
112 PASS matrix.f is 0
113 PASS imgdata[4] is 0
114 PASS imgdata[5] is 0
115 PASS imgdata[6] is 255
116 Check assigning an invalid object throws exception as expected
117 PASS ctx.currentTransform = ctx threw exception TypeError: Type error.
118 Check handling non-finite values. see 2d.transformation.setTransform.nonfinite.h tml
119 PASS matrix.a is 1
120 PASS matrix.b is 0
121 PASS matrix.c is 0
122 PASS matrix.d is 1
123 PASS matrix.e is 100
124 PASS matrix.f is 10
125 PASS matrix.a is 1
126 PASS matrix.b is 0
127 PASS matrix.c is 0
128 PASS matrix.d is 1
129 PASS matrix.e is 100
130 PASS matrix.f is 10
131 PASS matrix.a is 1
132 PASS matrix.b is 0
133 PASS matrix.c is 0
134 PASS matrix.d is 1
135 PASS matrix.e is 100
136 PASS matrix.f is 10
137 PASS matrix.a is 1
138 PASS matrix.b is 0
139 PASS matrix.c is 0
140 PASS matrix.d is 1
141 PASS matrix.e is 100
142 PASS matrix.f is 10
143 PASS matrix.a is 1
144 PASS matrix.b is 0
145 PASS matrix.c is 0
146 PASS matrix.d is 1
147 PASS matrix.e is 100
148 PASS matrix.f is 10
149 PASS matrix.a is 1
150 PASS matrix.b is 0
151 PASS matrix.c is 0
152 PASS matrix.d is 1
153 PASS matrix.e is 100
154 PASS matrix.f is 10
155 PASS matrix.a is 1
156 PASS matrix.b is 0
157 PASS matrix.c is 0
158 PASS matrix.d is 1
159 PASS matrix.e is 100
160 PASS matrix.f is 10
161 PASS matrix.a is 1
162 PASS matrix.b is 0
163 PASS matrix.c is 0
164 PASS matrix.d is 1
165 PASS matrix.e is 100
166 PASS matrix.f is 10
167 PASS matrix.a is 1
168 PASS matrix.b is 0
169 PASS matrix.c is 0
170 PASS matrix.d is 1
171 PASS matrix.e is 100
172 PASS matrix.f is 10
173 PASS matrix.a is 1
174 PASS matrix.b is 0
175 PASS matrix.c is 0
176 PASS matrix.d is 1
177 PASS matrix.e is 100
178 PASS matrix.f is 10
179 PASS matrix.a is 1
180 PASS matrix.b is 0
181 PASS matrix.c is 0
182 PASS matrix.d is 1
183 PASS matrix.e is 100
184 PASS matrix.f is 10
185 PASS matrix.a is 1
186 PASS matrix.b is 0
187 PASS matrix.c is 0
188 PASS matrix.d is 1
189 PASS matrix.e is 100
190 PASS matrix.f is 10
191 PASS matrix.a is 1
192 PASS matrix.b is 0
193 PASS matrix.c is 0
194 PASS matrix.d is 1
195 PASS matrix.e is 100
196 PASS matrix.f is 10
197 PASS matrix.a is 1
198 PASS matrix.b is 0
199 PASS matrix.c is 0
200 PASS matrix.d is 1
201 PASS matrix.e is 100
202 PASS matrix.f is 10
203 PASS matrix.a is 1
204 PASS matrix.b is 0
205 PASS matrix.c is 0
206 PASS matrix.d is 1
207 PASS matrix.e is 100
208 PASS matrix.f is 10
209 PASS matrix.a is 1
210 PASS matrix.b is 0
211 PASS matrix.c is 0
212 PASS matrix.d is 1
213 PASS matrix.e is 100
214 PASS matrix.f is 10
215 PASS matrix.a is 1
216 PASS matrix.b is 0
217 PASS matrix.c is 0
218 PASS matrix.d is 1
219 PASS matrix.e is 100
220 PASS matrix.f is 10
221 PASS matrix.a is 1
222 PASS matrix.b is 0
223 PASS matrix.c is 0
224 PASS matrix.d is 1
225 PASS matrix.e is 100
226 PASS matrix.f is 10
227 PASS matrix.a is 1
228 PASS matrix.b is 0
229 PASS matrix.c is 0
230 PASS matrix.d is 1
231 PASS matrix.e is 100
232 PASS matrix.f is 10
233 PASS matrix.a is 1
234 PASS matrix.b is 0
235 PASS matrix.c is 0
236 PASS matrix.d is 1
237 PASS matrix.e is 100
238 PASS matrix.f is 10
239 PASS matrix.a is 1
240 PASS matrix.b is 0
241 PASS matrix.c is 0
242 PASS matrix.d is 1
243 PASS matrix.e is 100
244 PASS matrix.f is 10
245 PASS matrix.a is 1
246 PASS matrix.b is 0
247 PASS matrix.c is 0
248 PASS matrix.d is 1
249 PASS matrix.e is 100
250 PASS matrix.f is 10
251 PASS matrix.a is 1
252 PASS matrix.b is 0
253 PASS matrix.c is 0
254 PASS matrix.d is 1
255 PASS matrix.e is 100
256 PASS matrix.f is 10
257 PASS matrix.a is 1
258 PASS matrix.b is 0
259 PASS matrix.c is 0
260 PASS matrix.d is 1
261 PASS matrix.e is 100
262 PASS matrix.f is 10
263 PASS matrix.a is 1
264 PASS matrix.b is 0
265 PASS matrix.c is 0
266 PASS matrix.d is 1
267 PASS matrix.e is 100
268 PASS matrix.f is 10
269 PASS matrix.a is 1
270 PASS matrix.b is 0
271 PASS matrix.c is 0
272 PASS matrix.d is 1
273 PASS matrix.e is 100
274 PASS matrix.f is 10
275 PASS matrix.a is 1
276 PASS matrix.b is 0
277 PASS matrix.c is 0
278 PASS matrix.d is 1
279 PASS matrix.e is 100
280 PASS matrix.f is 10
281 PASS matrix.a is 1
282 PASS matrix.b is 0
283 PASS matrix.c is 0
284 PASS matrix.d is 1
285 PASS matrix.e is 100
286 PASS matrix.f is 10
287 PASS matrix.a is 1
288 PASS matrix.b is 0
289 PASS matrix.c is 0
290 PASS matrix.d is 1
291 PASS matrix.e is 100
292 PASS matrix.f is 10
293 PASS matrix.a is 1
294 PASS matrix.b is 0
295 PASS matrix.c is 0
296 PASS matrix.d is 1
297 PASS matrix.e is 100
298 PASS matrix.f is 10
299 PASS matrix.a is 1
300 PASS matrix.b is 0
301 PASS matrix.c is 0
302 PASS matrix.d is 1
303 PASS matrix.e is 100
304 PASS matrix.f is 10
305 PASS matrix.a is 1
306 PASS matrix.b is 0
307 PASS matrix.c is 0
308 PASS matrix.d is 1
309 PASS matrix.e is 100
310 PASS matrix.f is 10
311 PASS matrix.a is 1
312 PASS matrix.b is 0
313 PASS matrix.c is 0
314 PASS matrix.d is 1
315 PASS matrix.e is 100
316 PASS matrix.f is 10
317 PASS matrix.a is 1
318 PASS matrix.b is 0
319 PASS matrix.c is 0
320 PASS matrix.d is 1
321 PASS matrix.e is 100
322 PASS matrix.f is 10
323 PASS matrix.a is 1
324 PASS matrix.b is 0
325 PASS matrix.c is 0
326 PASS matrix.d is 1
327 PASS matrix.e is 100
328 PASS matrix.f is 10
329 PASS matrix.a is 1
330 PASS matrix.b is 0
331 PASS matrix.c is 0
332 PASS matrix.d is 1
333 PASS matrix.e is 100
334 PASS matrix.f is 10
335 PASS matrix.a is 1
336 PASS matrix.b is 0
337 PASS matrix.c is 0
338 PASS matrix.d is 1
339 PASS matrix.e is 100
340 PASS matrix.f is 10
341 PASS matrix.a is 1
342 PASS matrix.b is 0
343 PASS matrix.c is 0
344 PASS matrix.d is 1
345 PASS matrix.e is 100
346 PASS matrix.f is 10
347 PASS matrix.a is 1
348 PASS matrix.b is 0
349 PASS matrix.c is 0
350 PASS matrix.d is 1
351 PASS matrix.e is 100
352 PASS matrix.f is 10
353 PASS matrix.a is 1
354 PASS matrix.b is 0
355 PASS matrix.c is 0
356 PASS matrix.d is 1
357 PASS matrix.e is 100
358 PASS matrix.f is 10
359 PASS matrix.a is 1
360 PASS matrix.b is 0
361 PASS matrix.c is 0
362 PASS matrix.d is 1
363 PASS matrix.e is 100
364 PASS matrix.f is 10
365 PASS matrix.a is 1
366 PASS matrix.b is 0
367 PASS matrix.c is 0
368 PASS matrix.d is 1
369 PASS matrix.e is 100
370 PASS matrix.f is 10
371 PASS matrix.a is 1
372 PASS matrix.b is 0
373 PASS matrix.c is 0
374 PASS matrix.d is 1
375 PASS matrix.e is 100
376 PASS matrix.f is 10
377 PASS matrix.a is 1
378 PASS matrix.b is 0
379 PASS matrix.c is 0
380 PASS matrix.d is 1
381 PASS matrix.e is 100
382 PASS matrix.f is 10
383 PASS matrix.a is 1
384 PASS matrix.b is 0
385 PASS matrix.c is 0
386 PASS matrix.d is 1
387 PASS matrix.e is 100
388 PASS matrix.f is 10
389 PASS matrix.a is 1
390 PASS matrix.b is 0
391 PASS matrix.c is 0
392 PASS matrix.d is 1
393 PASS matrix.e is 100
394 PASS matrix.f is 10
395 PASS matrix.a is 1
396 PASS matrix.b is 0
397 PASS matrix.c is 0
398 PASS matrix.d is 1
399 PASS matrix.e is 100
400 PASS matrix.f is 10
401 PASS matrix.a is 1
402 PASS matrix.b is 0
403 PASS matrix.c is 0
404 PASS matrix.d is 1
405 PASS matrix.e is 100
406 PASS matrix.f is 10
407 PASS matrix.a is 1
408 PASS matrix.b is 0
409 PASS matrix.c is 0
410 PASS matrix.d is 1
411 PASS matrix.e is 100
412 PASS matrix.f is 10
413 PASS matrix.a is 1
414 PASS matrix.b is 0
415 PASS matrix.c is 0
416 PASS matrix.d is 1
417 PASS matrix.e is 100
418 PASS matrix.f is 10
419 PASS matrix.a is 1
420 PASS matrix.b is 0
421 PASS matrix.c is 0
422 PASS matrix.d is 1
423 PASS matrix.e is 100
424 PASS matrix.f is 10
425 PASS matrix.a is 1
426 PASS matrix.b is 0
427 PASS matrix.c is 0
428 PASS matrix.d is 1
429 PASS matrix.e is 100
430 PASS matrix.f is 10
431 PASS matrix.a is 1
432 PASS matrix.b is 0
433 PASS matrix.c is 0
434 PASS matrix.d is 1
435 PASS matrix.e is 100
436 PASS matrix.f is 10
437 PASS matrix.a is 1
438 PASS matrix.b is 0
439 PASS matrix.c is 0
440 PASS matrix.d is 1
441 PASS matrix.e is 100
442 PASS matrix.f is 10
443 PASS matrix.a is 1
444 PASS matrix.b is 0
445 PASS matrix.c is 0
446 PASS matrix.d is 1
447 PASS matrix.e is 100
448 PASS matrix.f is 10
449 PASS matrix.a is 1
450 PASS matrix.b is 0
451 PASS matrix.c is 0
452 PASS matrix.d is 1
453 PASS matrix.e is 100
454 PASS matrix.f is 10
455 PASS matrix.a is 1
456 PASS matrix.b is 0
457 PASS matrix.c is 0
458 PASS matrix.d is 1
459 PASS matrix.e is 100
460 PASS matrix.f is 10
461 PASS matrix.a is 1
462 PASS matrix.b is 0
463 PASS matrix.c is 0
464 PASS matrix.d is 1
465 PASS matrix.e is 100
466 PASS matrix.f is 10
467 PASS matrix.a is 1
468 PASS matrix.b is 0
469 PASS matrix.c is 0
470 PASS matrix.d is 1
471 PASS matrix.e is 100
472 PASS matrix.f is 10
473 PASS matrix.a is 1
474 PASS matrix.b is 0
475 PASS matrix.c is 0
476 PASS matrix.d is 1
477 PASS matrix.e is 100
478 PASS matrix.f is 10
479 PASS matrix.a is 1
480 PASS matrix.b is 0
481 PASS matrix.c is 0
482 PASS matrix.d is 1
483 PASS matrix.e is 100
484 PASS matrix.f is 10
485 PASS matrix.a is 1
486 PASS matrix.b is 0
487 PASS matrix.c is 0
488 PASS matrix.d is 1
489 PASS matrix.e is 100
490 PASS matrix.f is 10
491 PASS matrix.a is 1
492 PASS matrix.b is 0
493 PASS matrix.c is 0
494 PASS matrix.d is 1
495 PASS matrix.e is 100
496 PASS matrix.f is 10
497 PASS matrix.a is 1
498 PASS matrix.b is 0
499 PASS matrix.c is 0
500 PASS matrix.d is 1
501 PASS matrix.e is 100
502 PASS matrix.f is 10
503 PASS matrix.a is 1
504 PASS matrix.b is 0
505 PASS matrix.c is 0
506 PASS matrix.d is 1
507 PASS matrix.e is 100
508 PASS matrix.f is 10
509 PASS matrix.a is 1
510 PASS matrix.b is 0
511 PASS matrix.c is 0
512 PASS matrix.d is 1
513 PASS matrix.e is 100
514 PASS matrix.f is 10
515 PASS matrix.a is 1
516 PASS matrix.b is 0
517 PASS matrix.c is 0
518 PASS matrix.d is 1
519 PASS matrix.e is 100
520 PASS matrix.f is 10
521 PASS matrix.a is 1
522 PASS matrix.b is 0
523 PASS matrix.c is 0
524 PASS matrix.d is 1
525 PASS matrix.e is 100
526 PASS matrix.f is 10
527 PASS matrix.a is 1
528 PASS matrix.b is 0
529 PASS matrix.c is 0
530 PASS matrix.d is 1
531 PASS matrix.e is 100
532 PASS matrix.f is 10
533 PASS matrix.a is 1
534 PASS matrix.b is 0
535 PASS matrix.c is 0
536 PASS matrix.d is 1
537 PASS matrix.e is 100
538 PASS matrix.f is 10
539 PASS matrix.a is 1
540 PASS matrix.b is 0
541 PASS matrix.c is 0
542 PASS matrix.d is 1
543 PASS matrix.e is 100
544 PASS matrix.f is 10
545 PASS matrix.a is 1
546 PASS matrix.b is 0
547 PASS matrix.c is 0
548 PASS matrix.d is 1
549 PASS matrix.e is 100
550 PASS matrix.f is 10
551 PASS matrix.a is 1
552 PASS matrix.b is 0
553 PASS matrix.c is 0
554 PASS matrix.d is 1
555 PASS matrix.e is 100
556 PASS matrix.f is 10
557 PASS matrix.a is 1
558 PASS matrix.b is 0
559 PASS matrix.c is 0
560 PASS matrix.d is 1
561 PASS matrix.e is 100
562 PASS matrix.f is 10
563 PASS matrix.a is 1
564 PASS matrix.b is 0
565 PASS matrix.c is 0
566 PASS matrix.d is 1
567 PASS matrix.e is 100
568 PASS matrix.f is 10
569 PASS matrix.a is 1
570 PASS matrix.b is 0
571 PASS matrix.c is 0
572 PASS matrix.d is 1
573 PASS matrix.e is 100
574 PASS matrix.f is 10
575 PASS matrix.a is 1
576 PASS matrix.b is 0
577 PASS matrix.c is 0
578 PASS matrix.d is 1
579 PASS matrix.e is 100
580 PASS matrix.f is 10
581 PASS imgdata[4] is 0
582 PASS imgdata[5] is 128
583 PASS imgdata[6] is 0
584 PASS successfullyParsed is true
585
586 TEST COMPLETE
587
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698