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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.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.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 f15bf5837b7f5fc4909a3be3748425de0b6781fd..3d230cbcce9281e274f8fd4b33b7f384477ccef9 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
@@ -47,6 +47,16 @@ test(() => {
}, "DOMMatrix fromFloat64Array - 3D matrix");
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");
+
+test(() => {
+ var matrix = new DOMMatrix([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
+ assert_3d_matrix_equals(matrix, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
+}, "DOMMatrix(numberSequence) constructor");
+
+test(() => {
var matrix = new DOMMatrix();
matrix.a = 10;
matrix.b = 20;

Powered by Google App Engine
This is Rietveld 408576698