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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-skew.html

Issue 2374773002: [GeometryInterface] Add DOMMatrix(numberSequence) constructor. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-skew.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-skew.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-skew.html
index c96a8301c2c5db6ffb57189ac858b816aca4f69f..788d4258e5172814302efb8524b2c691acc8e2d4 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-skew.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-skew.html
@@ -3,55 +3,51 @@
<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, 3.1, 2, 1]));
+ var matrix2d = new DOMMatrix([1, 2, 3, 3.1, 2, 1]);
matrix2d.skewXSelf();
assert_2d_matrix_equals(matrix2d, [1, 2, 3, 3.1, 2, 1]);
}, "DOMMatrix skewX() - 2D matrix");
test(function() {
- var matrix2d = new DOMMatrix(initMatrix([1, 2, 3, 3.1, 2, 1]));
+ var matrix2d = new DOMMatrix([1, 2, 3, 3.1, 2, 1]);
matrix2d.skewXSelf(45);
assert_2d_matrix_equals(matrix2d, [1, 2, 4, 5.1, 2, 1]);
}, "DOMMatrix skewX(45) - 2D matrix");
test(function() {
- var matrix3d = new DOMMatrix(initMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]));
+ var matrix3d = new DOMMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]);
matrix3d.skewXSelf();
assert_3d_matrix_equals(matrix3d, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]);
}, "DOMMatrix skewX() - 3D matrix");
test(function() {
- var matrix3d = new DOMMatrix(initMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]));
+ var matrix3d = new DOMMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]);
matrix3d.skewXSelf(45);
assert_3d_matrix_equals(matrix3d, [1, 2, 3, 4, 6, 8, 10, 12, 9, 10.1, 11, 12, 13, 14, 15, 16.6]);
}, "DOMMatrix skewX(45) - 3D matrix");
test(function() {
- var matrix2d = new DOMMatrix(initMatrix([1, 2, 3, 3.1, 2, 1]));
+ var matrix2d = new DOMMatrix([1, 2, 3, 3.1, 2, 1]);
matrix2d.skewYSelf();
assert_2d_matrix_equals(matrix2d, [1, 2, 3, 3.1, 2, 1]);
}, "DOMMatrix skewY() - 2D matrix");
test(function() {
- var matrix2d = new DOMMatrix(initMatrix([2, 2, 2, 2, 2, 2]));
+ var matrix2d = new DOMMatrix([2, 2, 2, 2, 2, 2]);
matrix2d.skewYSelf(45);
assert_2d_matrix_equals(matrix2d, [4, 4, 2, 2, 2, 2]);
}, "DOMMatrix skewY(45) - 2D matrix");
test(function() {
- var matrix3d = new DOMMatrix(initMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]));
+ var matrix3d = new DOMMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]);
matrix3d.skewYSelf();
assert_3d_matrix_equals(matrix3d, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]);
}, "DOMMatrix skewY() - 3D matrix");
test(function() {
- var matrix3d = new DOMMatrix(initMatrix([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]));
+ var matrix3d = new DOMMatrix([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
matrix3d.skewYSelf(45);
assert_3d_matrix_equals(matrix3d, [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
}, "DOMMatrix skewY(45) - 3D matrix");

Powered by Google App Engine
This is Rietveld 408576698