| Index: third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/skewTransformComponent.html b/third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
|
| similarity index 65%
|
| rename from third_party/WebKit/LayoutTests/typedcssom/skewTransformComponent.html
|
| rename to third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
|
| index 800b65e49493d39b8b21d1577a395c8115e65f7e..4c7607c64d0370f0b3c4983f68c119613e1cc0a5 100644
|
| --- a/third_party/WebKit/LayoutTests/typedcssom/skewTransformComponent.html
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/cssSkew.html
|
| @@ -5,10 +5,10 @@
|
| <script>
|
| var EPSILON = 1e-6; // float epsilon
|
| var values = [
|
| - {input: new Skew(0, 0), ax: 0, ay: 0, cssString: "skew(0, 0)"},
|
| - {input: new Skew(1, 2), ax: 1, ay: 2, cssString: "skew(1, 2)"},
|
| - {input: new Skew(-2, -4), ax: -2, ay: -4, cssString: "skew(-2, -4)"},
|
| - {input: new Skew(3.4, 2.7), ax: 3.4, ay: 2.7, cssString: "skew(3.4, 2.7)"}
|
| + {input: new CSSSkew(0, 0), ax: 0, ay: 0, cssString: "skew(0, 0)"},
|
| + {input: new CSSSkew(1, 2), ax: 1, ay: 2, cssString: "skew(1, 2)"},
|
| + {input: new CSSSkew(-2, -4), ax: -2, ay: -4, cssString: "skew(-2, -4)"},
|
| + {input: new CSSSkew(3.4, 2.7), ax: 3.4, ay: 2.7, cssString: "skew(3.4, 2.7)"}
|
| ];
|
|
|
| test(function() {
|
| @@ -16,24 +16,24 @@ test(function() {
|
| assert_equals(values[i].input.ax, values[i].ax);
|
| assert_equals(values[i].input.ay, values[i].ay);
|
| }
|
| -}, "Test that the (ax, ay) values for Skew are correct.");
|
| +}, "Test that the (ax, ay) values for CSSSkew are correct.");
|
|
|
| test(function() {
|
| for (var i = 0; i < values.length; ++i) {
|
| assert_true(values[i].input.is2DComponent());
|
| }
|
| -}, "Test that the is2DComponent values for Skew is correct.");
|
| +}, "Test that the is2DComponent values for CSSSkew is correct.");
|
|
|
| test(function() {
|
| for (var i = 0; i < values.length; ++i) {
|
| assert_equals(values[i].input.cssString, values[i].cssString);
|
| }
|
| -}, "Test that the cssString for Skew is correct.");
|
| +}, "Test that the cssString for CSSSkew is correct.");
|
|
|
| test(function() {
|
| - assert_throws(null, function() { new Skew(); });
|
| - assert_throws(null, function() { new Skew(1); });
|
| -}, "Test that invalid number of arguments for Skew throws an exception.");
|
| + assert_throws(null, function() { new CSSSkew(); });
|
| + assert_throws(null, function() { new CSSSkew(1); });
|
| +}, "Test that invalid number of arguments for CSSSkew throws an exception.");
|
|
|
| function tanDegrees(degrees) {
|
| var radians = degrees * Math.PI / 180;
|
| @@ -56,6 +56,6 @@ test(function() {
|
| }
|
| }
|
| }
|
| -}, "Test that asMatrix is constructed correctly for Skew.");
|
| +}, "Test that asMatrix is constructed correctly for CSSSkew.");
|
|
|
| </script>
|
|
|