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

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

Issue 2516973002: [GeometryInferface] add Constructor(DOMString transformList). (Closed)
Patch Set: [GeometryInferface] add Constructor(DOMString transformList). Created 4 years 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.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html
index ee37c502e139f7c5ff40109b24d97a618d258e47..e4a3a849cb44de7f9832640ba08ef246420330b8 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html
@@ -35,6 +35,20 @@ test(() => {
}, "DOMMatrix fromFloat64Array - 3D matrix");
test(() => {
+ var matrix = new DOMMatrix("");
+ assert_identity_2d_matrix(matrix);
+}, "DOMMatrix(transformList) - emptyString");
+
+test(() => {
+ var matrix = new DOMMatrix("matrix(1.0, 2.0, 3.0, 4.0, 5.0, 6.0) translate(44px, 55px) skewX(30deg)");
+ var expectedMatrix = new DOMMatrix();
+ expectedMatrix.multiplySelf(new DOMMatrix([1.0, 2.0, 3.0, 4.0, 5.0, 6.0]))
+ expectedMatrix.translateSelf(44, 55)
+ expectedMatrix.skewXSelf(30);
+ assert_matrix_almost_equals(matrix, expectedMatrix);
+}, "DOMMatrix(transformList) - transformList");
+
+test(() => {
var matrix = new DOMMatrix([1, 2, 3, 4, 5, 6]);
assert_2d_matrix_equals(matrix, [1, 2, 3, 4, 5, 6]);
}, "DOMMatrix(numberSequence) constructor");
@@ -192,4 +206,5 @@ test(() => {
var matrix = DOMMatrix.fromMatrix({a: 1, b: 2, m11: 3});
}, "The 'a' property should equal the 'm11' property.");
}, "DOMMatrix.fromMatrix(): Exception test.");
+
</script>

Powered by Google App Engine
This is Rietveld 408576698