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

Side by Side Diff: third_party/WebKit/LayoutTests/transforms/cssmatrix-3d-interface.xhtml

Issue 2709763004: Make WebKitCSSMatrix an alias of DOMMatrix (Closed)
Patch Set: Make WebkitCSSMatrix an alias of DOMMatrix Created 3 years, 6 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
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <script src="../resources/js-test.js"></script> 3 <script src="../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <div id="description"></div> 6 <div id="description"></div>
7 <div id="console"></div> 7 <div id="console"></div>
8 8
9 <script> 9 <script>
10 10
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 shouldBe('parseFloat(m.m31)', '0'); 270 shouldBe('parseFloat(m.m31)', '0');
271 shouldBe('parseFloat(m.m32)', '0'); 271 shouldBe('parseFloat(m.m32)', '0');
272 shouldBe('parseFloat(m.m33)', '2'); 272 shouldBe('parseFloat(m.m33)', '2');
273 shouldBe('parseFloat(m.m34)', '0'); 273 shouldBe('parseFloat(m.m34)', '0');
274 shouldBe('parseFloat(m.m41)', '10'); 274 shouldBe('parseFloat(m.m41)', '10');
275 shouldBe('parseFloat(m.m42)', '20'); 275 shouldBe('parseFloat(m.m42)', '20');
276 shouldBe('parseFloat(m.m43)', '30'); 276 shouldBe('parseFloat(m.m43)', '30');
277 shouldBe('parseFloat(m.m44)', '1'); 277 shouldBe('parseFloat(m.m44)', '1');
278 278
279 debug(""); 279 debug("");
280 debug("Test throwing exception from inverse"); 280 debug("Test not invertible 3d matrix");
281 m = new WebKitCSSMatrix("matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )"); // not invertible 281 m = new WebKitCSSMatrix("matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )"); // not invertible
282 shouldThrow('m.inverse()'); 282 m2 = m.inverse();
283
284 shouldBeNaN('m2.m11');
285 shouldBeNaN('m2.m12');
286 shouldBeNaN('m2.m13');
287 shouldBeNaN('m2.m14');
288 shouldBeNaN('m2.m21');
289 shouldBeNaN('m2.m22');
290 shouldBeNaN('m2.m23');
291 shouldBeNaN('m2.m24');
292 shouldBeNaN('m2.m31');
293 shouldBeNaN('m2.m32');
294 shouldBeNaN('m2.m33');
295 shouldBeNaN('m2.m34');
296 shouldBeNaN('m2.m41');
297 shouldBeNaN('m2.m42');
298 shouldBeNaN('m2.m43');
299 shouldBeNaN('m2.m44');
300
301 debug("");
302 debug("Test immutability of inverse");
303 shouldBe('m.m11', '0');
304 shouldBe('m.m12', '0');
305 shouldBe('m.m13', '0');
306 shouldBe('m.m14', '0');
307 shouldBe('m.m21', '0');
308 shouldBe('m.m22', '0');
309 shouldBe('m.m23', '0');
310 shouldBe('m.m24', '0');
311 shouldBe('m.m31', '0');
312 shouldBe('m.m32', '0');
313 shouldBe('m.m33', '0');
314 shouldBe('m.m34', '0');
315 shouldBe('m.m41', '0');
316 shouldBe('m.m42', '0');
317 shouldBe('m.m43', '0');
318 shouldBe('m.m44', '0');
283 319
284 debug(""); 320 debug("");
285 debug("Test translate"); 321 debug("Test translate");
286 m = new WebKitCSSMatrix(); 322 m = new WebKitCSSMatrix();
287 var m2 = m.translate(10, 20, 30); 323 var m2 = m.translate(10, 20, 30);
288 shouldBe('m2.m11', '1'); 324 shouldBe('m2.m11', '1');
289 shouldBe('m2.m12', '0'); 325 shouldBe('m2.m12', '0');
290 shouldBe('m2.m13', '0'); 326 shouldBe('m2.m13', '0');
291 shouldBe('m2.m14', '0'); 327 shouldBe('m2.m14', '0');
292 shouldBe('m2.m21', '0'); 328 shouldBe('m2.m21', '0');
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 479
444 debug(""); 480 debug("");
445 481
446 </script> 482 </script>
447 483
448 <script> 484 <script>
449 </script> 485 </script>
450 486
451 </body> 487 </body>
452 </html> 488 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698