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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/cssScale.html

Issue 2933473003: Remove asMatrix as a JS-exposed method in CSSTransformComponents. (Closed)
Patch Set: update skew expectation for missing "s" Created 3 years, 6 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/typedcssom/cssScale.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssScale.html b/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
index 45daef7436ab69060535a794de90704f4da11110..82c084d6def356a556bb91751e9a74a169975d18 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
@@ -107,14 +107,15 @@ test(() => {
for (let params of testParams) {
test(() => {
var input = params.input;
- var inputAsMatrix = input.asMatrix();
- assert_equals(inputAsMatrix.is2D(), input.is2D());
+ var transformValue = new CSSTransformValue([input]);
+ var inputAsMatrix = transformValue.toMatrix();
+ assert_equals(inputAsMatrix.is2D, input.is2D());
var expectedMatrix = input.is2D() ?
new DOMMatrixReadOnly([input.x, 0, 0, input.y, 0, 0]) :
new DOMMatrixReadOnly(
[input.x, 0, 0, 0, 0, input.y, 0, 0, 0, 0, input.z, 0, 0, 0, 0, 1]);
- assert_matrix_approx_equals(inputAsMatrix.matrix, expectedMatrix, EPSILON);
+ assert_matrix_approx_equals(inputAsMatrix, expectedMatrix, EPSILON);
}, "asMatrix is constructed correctly for " + params.cssText);
}

Powered by Google App Engine
This is Rietveld 408576698