Index: third_party/WebKit/LayoutTests/typedcssom/cssRotation.html |
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html b/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html |
index 363bb86ff36f1b659881d2c3f27ec4e230c09fa4..4371bb73b46adf970f064ac9764d84ec35d1e655 100644 |
--- a/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html |
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html |
@@ -6,36 +6,36 @@ |
var EPSILON = 1e-6; // float epsilon |
var values = [ |
{input: new CSSRotation(0), angle: 0, x: 0, y: 0, z: 1, |
- is2DComponent: true, cssText: "rotate(0deg)", |
+ is2D: true, cssText: "rotate(0deg)", |
asMatrix: new CSSMatrix(1, 0, 0, 1, 0, 0)}, |
{input: new CSSRotation(10), angle: 10, x: 0, y: 0, z: 1, |
- is2DComponent: true, cssText: "rotate(10deg)", |
+ is2D: true, cssText: "rotate(10deg)", |
asMatrix: new CSSMatrix(0.9848077, 0.1736481, -0.1736481, 0.9848077, 0, 0)}, |
{input: new CSSRotation(new CSSAngleValue(10, 'deg')), angle: 10, x: 0, y: 0, z: 1, |
- is2DComponent: true, cssText: "rotate(10deg)", |
+ is2D: true, cssText: "rotate(10deg)", |
asMatrix: new CSSMatrix(0.9848077, 0.1736481, -0.1736481, 0.9848077, 0, 0)}, |
{input: new CSSRotation(-21), angle: -21, x: 0, y: 0, z: 1, |
- is2DComponent: true, cssText: "rotate(-21deg)", |
+ is2D: true, cssText: "rotate(-21deg)", |
asMatrix: new CSSMatrix(0.9335804, -0.3583679, 0.3583679, 0.9335804, 0, 0)}, |
{input: new CSSRotation(3.2), angle: 3.2, x: 0, y: 0, z: 1, |
- is2DComponent: true, cssText: "rotate(3.2deg)", |
+ is2D: true, cssText: "rotate(3.2deg)", |
asMatrix: new CSSMatrix(0.9984407, 0.0558215, -0.0558215, 0.9984407, 0, 0)}, |
{input: new CSSRotation(0, 0, 1, 90), angle: 90, x: 0, y: 0, z: 1, |
- is2DComponent: false, cssText: "rotate3d(0, 0, 1, 90deg)", |
+ is2D: false, cssText: "rotate3d(0, 0, 1, 90deg)", |
asMatrix: new CSSMatrix(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}, |
{input: new CSSRotation(2.7, -3, 4.4, 0), angle: 0, x: 2.7, y: -3, z: 4.4, |
- is2DComponent: false, cssText: "rotate3d(2.7, -3, 4.4, 0deg)", |
+ is2D: false, cssText: "rotate3d(2.7, -3, 4.4, 0deg)", |
asMatrix: new CSSMatrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}, |
{input: new CSSRotation(2, 3, 4, 10), angle: 10, x: 2, y: 3, z: 4, |
- is2DComponent: false, cssText: "rotate3d(2, 3, 4, 10deg)", |
+ is2D: false, cssText: "rotate3d(2, 3, 4, 10deg)", |
asMatrix: new CSSMatrix(0.9869032, 0.1321258, -0.0925460, 0, -0.1258394, |
0.9895225, 0.0707777, 0, 0.1009279, -0.0582048, 0.9931896, 0, 0, 0, 0, 1)}, |
{input: new CSSRotation(2, 3.7, -4, -1.2), angle: -1.2, x: 2, y: 3.7, z: -4, |
- is2DComponent: false, cssText: "rotate3d(2, 3.7, -4, -1.2deg)", |
+ is2D: false, cssText: "rotate3d(2, 3.7, -4, -1.2deg)", |
asMatrix: new CSSMatrix(0.9998067, 0.01448049, 0.0132978, 0, -0.0143841, |
0.9998698, -0.0073125, 0, -0.0134019, 0.0071198, 0.9998848, 0, 0, 0, 0, 1)}, |
{input: new CSSRotation(1, 0, 0, new CSSAngleValue(0.5, 'turn')), angle: 180, x: 1, y: 0, z: 0, |
- is2DComponent: false, cssText: "rotate3d(1, 0, 0, 180deg)", |
+ is2D: false, cssText: "rotate3d(1, 0, 0, 180deg)", |
asMatrix: new CSSMatrix(1, 0, 0, 0, 0, -1, 1.2246467991473532e-16, 0, 0, |
-1.2246467991473532e-16, -1, 0, 0, 0, 0, 1)} |
]; |
@@ -51,9 +51,9 @@ test(function() { |
test(function() { |
for (var i = 0; i < values.length; ++i) { |
- assert_equals(values[i].input.is2DComponent(), values[i].is2DComponent); |
+ assert_equals(values[i].input.is2D(), values[i].is2D); |
} |
-}, "Test that the is2DComponent values for CSSRotation is correct."); |
+}, "Test that the is2D values for CSSRotation is correct."); |
test(function() { |
for (var i = 0; i < values.length; ++i) { |
@@ -65,7 +65,7 @@ test(function() { |
for (var i = 0; i < values.length; ++i) { |
var input = values[i].input; |
var inputAsMatrix = input.asMatrix(); |
- assert_equals(inputAsMatrix.is2DComponent(), input.is2DComponent()); |
+ assert_equals(inputAsMatrix.is2D(), input.is2D()); |
var expectedMatrix = values[i].asMatrix; |
for (var attribute in expectedMatrix) { |
if (typeof expectedMatrix[attribute] === "number") { |