Index: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-invert.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-invert.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-invert.html |
index b4a8df54933f116cdc861634d546598d421f2cbe..cb0df9b6817735b8d7a6ad469efa15d4894ebb95 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-invert.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-invert.html |
@@ -3,32 +3,28 @@ |
<script src="../../resources/testharnessreport.js"></script> |
<script src="./resources/geometry-interfaces-test-helpers.js"></script> |
<script> |
-// TODO(hs1217.lee): create the DOMMatrix directly when the sequence constructor is supported. |
-function initMatrix(values) { |
- return new DOMMatrixReadOnly(values); |
-} |
test(function() { |
- var matrix2d = new DOMMatrix(initMatrix([1, 2, 3, 4, 5, 6])); |
+ var matrix2d = new DOMMatrix([1, 2, 3, 4, 5, 6]); |
matrix2d.invertSelf(); |
assert_2d_matrix_equals(matrix2d, [-2, 1, 1.5, -0.5, 1, -2]); |
}, "DOMMatrix invertSelf() - invertible - 2D matrix"); |
test(function() { |
- var matrix2d = new DOMMatrix(initMatrix([1, 1, 1, 1, 1, 1])); |
+ var matrix2d = new DOMMatrix([1, 1, 1, 1, 1, 1]); |
matrix2d.invertSelf(); |
//when non invertible matrix execute invertSelf(), result matrix is not 2d. |
assert_3d_matrix_equals(matrix2d, [NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN]); |
}, "DOMMatrix invertSelf() - non-invertible - 2D matrix"); |
test(function() { |
- var matrix3d = new DOMMatrix(initMatrix([10, 20, 30, 40, 40, 40, 30, 20, 10, 20, 40, 30, 20, 40, 50, 100])); |
+ var matrix3d = new DOMMatrix([10, 20, 30, 40, 40, 40, 30, 20, 10, 20, 40, 30, 20, 40, 50, 100]); |
matrix3d.invertSelf(); |
assert_3d_matrix_equals(matrix3d, [-1.6, 0.05, 0.6, 0.45, 2.05, -0.025, -0.8, -0.575, -0.4, 0, 0.2, 0.1, -0.3, 0, 0.1, 0.1]); |
}, "DOMMatrix invertSelf() - 3D matrix"); |
test(function() { |
- var matrix3d = new DOMMatrix(initMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])); |
+ var matrix3d = new DOMMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]); |
matrix3d.invertSelf(); |
assert_3d_matrix_equals(matrix3d, [NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN]); |
}, "DOMMatrix invertSelf() - non-invertible - 3D matrix"); |