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

Unified Diff: LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate-expected.txt

Issue 446803002: Implement translate() and translateSelf() in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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: LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate-expected.txt
diff --git a/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate-expected.txt b/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e33691f636e79ff269be89078e4f86cb2646ee2e
--- /dev/null
+++ b/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate-expected.txt
@@ -0,0 +1,80 @@
+# DOMMatrix.translate(tx, ty)
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS result.is2D is true
+PASS result.isIdentity is false
+PASS compareMatrix(result, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+
+# DOMMatrix.translate(tx, ty) with non-identity
+PASS matrix.is2D is true
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS result.is2D is true
+PASS result.isIdentity is false
+PASS compareMatrix(result, [ 1, 0, 0, 6, 0, 1, 0, 5, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS matrix.is2D is true
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+
+# DOMMatrix.translateSelf(tx, ty)
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS result.is2D is true
+PASS result.isIdentity is false
+PASS compareMatrix(result, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS matrix.is2D is true
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+
+# DOMMatrix.translate(tx, ty, tz)
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS result.is2D is false
+PASS result.isIdentity is false
+PASS compareMatrix(result, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 4, 0, 0, 0, 1 ]) is true
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+
+# DOMMatrix.translate(tx, ty, tz) with non-identity
+PASS matrix.is2D is true
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS result.is2D is false
+PASS result.isIdentity is false
+PASS compareMatrix(result, [ 1, 0, 0, 6, 0, 1, 0, 5, 0, 0, 1, 3, 0, 0, 0, 1 ]) is true
+PASS matrix.is2D is true
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+
+# DOMMatrix.translateSelf(tx, ty, tz)
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
+PASS result.is2D is false
+PASS result.isIdentity is false
+PASS compareMatrix(result, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 3, 0, 0, 0, 1 ]) is true
+PASS matrix.is2D is false
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 3, 0, 0, 0, 1 ]) is true
+
+# DOMMatrix.translateSelf(tx, ty, tz) Homogeneous Coordinates
+PASS matrix.is2D is true
+PASS matrix.isIdentity is true
+PASS matrix.is2D is false
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2, 3, 4, 7 ]) is true
+PASS matrix.is2D is false
+PASS matrix.isIdentity is false
+PASS compareMatrix(matrix, [ 1, 0, 0, 7, 0, 1, 0, -8, 0, 0, 1, 2, 2, 3, 4, 5 ]) is true
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698