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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/cssSkew.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/cssSkew.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssSkew.html b/third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
index 70b35a65c29521068e1f483c62346923fa967f52..b1553d42b3bbac107fdab7dd9a91fac9387d9a9a 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
@@ -59,24 +59,6 @@ test(function() {
}, "Invalid arguments for CSSSkew throws an exception.");
test(function() {
- for (var i = 0; i < values.length; ++i) {
- var input = values[i].input;
- var inputAsMatrix = input.asMatrix();
- assert_true(inputAsMatrix.is2D());
- var tanAx = tanDegrees(input.ax.degrees);
- var tanAy = tanDegrees(input.ay.degrees);
- var expectedMatrix = new CSSMatrixComponent(new DOMMatrixReadOnly([1, tanAy, tanAx, 1, 0, 0]));
- for (var attribute in expectedMatrix) {
- if (attribute == "matrix") {
- assert_matrix_approx_equals(inputAsMatrix[attribute], expectedMatrix[attribute]);
- } else {
- assert_equals(inputAsMatrix[attribute], expectedMatrix[attribute]);
- }
- }
- }
-}, "asMatrix is constructed correctly for CSSSkew.");
-
-test(function() {
var skew = new CSSSkew(new CSSUnitValue(1, 'deg'), new CSSUnitValue(2, 'deg'));
skew.ax = new CSSUnitValue(3, 'deg');
skew.ay = new CSSUnitValue(3, 'rad');

Powered by Google App Engine
This is Rietveld 408576698