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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001.html

Issue 2859293002: Use union instead of overload fo DOMMatrix/DOMMatrixReadOnly (Closed)
Patch Set: x Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001.html b/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001.html
index 1ff5a9b98d1c4bbcd442575996f0bdb5e8b91792..cea454792417f8ad52bec4e3e2345146796711e9 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001.html
@@ -26,7 +26,7 @@
m12: 0, m22: 2, m32: 0, m42: 10,
m13: 0, m23: 0, m33: 1, m43: 0,
m14: 0, m24: 0, m34: 0, m44: 1,
- is2D: false,
+ is2D: true,
isIdentity: false
};
["DOMMatrix", "DOMMatrixReadOnly"].forEach(function(constr) {
@@ -56,16 +56,16 @@
});
test(function() {
- var float32Array = new Float32Array(
+ var float32Array = new Float32Array([
2.0, 0.0, 0.0, 0.0,
0.0, 2.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
- 10.0, 10.0, 0.0, 1.0);
+ 10.0, 10.0, 0.0, 1.0]);
checkDOMMatrix(new self[constr](float32Array), scaleTranslate2D, false);
}, `new ${constr}(float32Array) 16 elements`);
test(function() {
- var float32Array = new Float32Array(2.0, 0.0, 0.0, 2.0, 10.0, 10.0);
+ var float32Array = new Float32Array([2.0, 0.0, 0.0, 2.0, 10.0, 10.0]);
checkDOMMatrix(new self[constr](float32Array), scaleTranslate2D);
}, `new ${constr}(float32Array) 6 elements`);
@@ -79,7 +79,7 @@
}, `new ${constr}(float64Array) 16 elements`);
test(function() {
- var float64Array = new Float64Array(2.0, 0.0, 0.0, 2.0, 10.0, 10.0);
+ var float64Array = new Float64Array([2.0, 0.0, 0.0, 2.0, 10.0, 10.0]);
checkDOMMatrix(new self[constr](float64Array), scaleTranslate2D);
}, `new ${constr}((float64Array) 6 elements`);
@@ -91,7 +91,8 @@
[2.0, 0.0, 0.0, 2.0, 10.0, 10.0],
].forEach(function(sequence) {
test(function() {
- checkDOMMatrix(new self[constr](sequence), scaleTranslate2D, false);
+ checkDOMMatrix(new self[constr](sequence), scaleTranslate2D,
+ sequence.length == 6);
}, `new ${constr}(sequence) ${sequence.length} elements`);
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/DOMMatrix-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698