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

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

Issue 2942653002: [css-typed-om] remove asMatrix() method in CSSTransformComponent.idl (Closed)
Patch Set: rebase 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 01075f041ede694a9681448c88d205eaf776e5b1..4688cd933645ff6913218ae79dc79e41f6bf17b3 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
@@ -74,24 +74,6 @@ test(function() {
}, "Test that invalid input throws an exception.");
test(function() {
- for (var i = 0; i < values.length; ++i) {
- var input = values[i].input;
- var inputAsMatrix = input.asMatrix();
- assert_equals(inputAsMatrix.is2D(), input.is2D());
-
- var expectedMatrix = input.is2D() ? new CSSMatrixComponent(new DOMMatrixReadOnly([input.x, 0, 0, input.y, 0, 0])) :
- new CSSMatrixComponent(new DOMMatrixReadOnly([input.x, 0, 0, 0, 0, input.y, 0, 0, 0, 0, input.z, 0, 0, 0, 0, 1]));
- for (var attribute in expectedMatrix) {
- if (attribute == "matrix") {
- assert_matrix_approx_equals(inputAsMatrix[attribute], expectedMatrix[attribute]);
- } else {
- assert_equals(inputAsMatrix[attribute], expectedMatrix[attribute]);
- }
- }
- }
-}, "Test that asMatrix is constructed correctly for CSSScale.");
-
-test(function() {
var actual = new CSSScale(0, 0, 0);
actual.x = 1;
actual.y = 2;

Powered by Google App Engine
This is Rietveld 408576698