| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |