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

Side by Side Diff: LayoutTests/fast/dom/geometry-interfaces-dom-matrix-scale.html

Issue 466183006: Use testharnessreport.js for geometry-interfaces-dom-matrix-* test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Geometry Interfaces: DOMMatrix scale</title> 4 <title>Geometry Interfaces: DOMMatrix scale</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
6 </head> 7 </head>
7 <body> 8 <body>
8 <script> 9 <script>
9 10
10 test(function() { 11 test(function() {
11 var matrix = new DOMMatrix(); 12 var matrix = new DOMMatrix();
12 assert_true(matrix.is2D); 13 assert_true(matrix.is2D);
13 assert_true(matrix.isIdentity); 14 assert_true(matrix.isIdentity);
14 assert_array_equals(matrix.toFloat64Array(), [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 , 0, 0, 0, 0, 1 ]); 15 assert_array_equals(matrix.toFloat64Array(), [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 , 0, 0, 0, 0, 1 ]);
15 var result = matrix.scale(3); 16 var result = matrix.scale(3);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 assert_true(result.isIdentity); 158 assert_true(result.isIdentity);
158 assert_array_equals(result.toFloat64Array(), [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 , 0, 0, 0, 0, 1 ]); 159 assert_array_equals(result.toFloat64Array(), [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 , 0, 0, 0, 0, 1 ]);
159 assert_false(matrix.is2D); 160 assert_false(matrix.is2D);
160 assert_true(matrix.isIdentity); 161 assert_true(matrix.isIdentity);
161 assert_array_equals(matrix.toFloat64Array(), [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 , 0, 0, 0, 0, 1 ]); 162 assert_array_equals(matrix.toFloat64Array(), [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 , 0, 0, 0, 0, 1 ]);
162 }, "DOMMatrix.scaleNonUniformSelf(1, 1, 1, ox, oy, oz)"); 163 }, "DOMMatrix.scaleNonUniformSelf(1, 1, 1, ox, oy, oz)");
163 164
164 </script> 165 </script>
165 </body> 166 </body>
166 </html> 167 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698