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

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

Issue 1976493002: Typed CSSOM: Rename Rotation and RotationTransformComponent to CSSRotation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/typedcssom/rotationTransformComponent.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/typedcssom/cssRotation.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/rotationTransformComponent.html b/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html
similarity index 76%
rename from third_party/WebKit/LayoutTests/typedcssom/rotationTransformComponent.html
rename to third_party/WebKit/LayoutTests/typedcssom/cssRotation.html
index 3269afee490f760cbc437c4d435e67ed4a81370c..df9372082514c697553cc7c7d227c618e2d38d89 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/rotationTransformComponent.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html
@@ -5,29 +5,29 @@
<script>
var EPSILON = 1e-6; // float epsilon
var values = [
- {input: new Rotation(0), angle: 0, x: 0, y: 0, z: 1,
+ {input: new CSSRotation(0), angle: 0, x: 0, y: 0, z: 1,
is2DComponent: true, cssString: "rotate(0deg)",
asMatrix: new Matrix(1, 0, 0, 1, 0, 0)},
- {input: new Rotation(10), angle: 10, x: 0, y: 0, z: 1,
+ {input: new CSSRotation(10), angle: 10, x: 0, y: 0, z: 1,
is2DComponent: true, cssString: "rotate(10deg)",
asMatrix: new Matrix(0.9848077, 0.1736481, -0.1736481, 0.9848077, 0, 0)},
- {input: new Rotation(-21), angle: -21, x: 0, y: 0, z: 1,
+ {input: new CSSRotation(-21), angle: -21, x: 0, y: 0, z: 1,
is2DComponent: true, cssString: "rotate(-21deg)",
asMatrix: new Matrix(0.9335804, -0.3583679, 0.3583679, 0.9335804, 0, 0)},
- {input: new Rotation(3.2), angle: 3.2, x: 0, y: 0, z: 1,
+ {input: new CSSRotation(3.2), angle: 3.2, x: 0, y: 0, z: 1,
is2DComponent: true, cssString: "rotate(3.2deg)",
asMatrix: new Matrix(0.9984407, 0.0558215, -0.0558215, 0.9984407, 0, 0)},
- {input: new Rotation(90, 0, 0, 1), angle: 90, x: 0, y: 0, z: 1,
+ {input: new CSSRotation(90, 0, 0, 1), angle: 90, x: 0, y: 0, z: 1,
is2DComponent: false, cssString: "rotate3d(0, 0, 1, 90deg)",
asMatrix: new Matrix(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)},
- {input: new Rotation(0, 2.7, -3, 4.4), angle: 0, x: 2.7, y: -3, z: 4.4,
+ {input: new CSSRotation(0, 2.7, -3, 4.4), angle: 0, x: 2.7, y: -3, z: 4.4,
is2DComponent: false, cssString: "rotate3d(2.7, -3, 4.4, 0deg)",
asMatrix: new Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)},
- {input: new Rotation(10, 2, 3, 4), angle: 10, x: 2, y: 3, z: 4,
+ {input: new CSSRotation(10, 2, 3, 4), angle: 10, x: 2, y: 3, z: 4,
is2DComponent: false, cssString: "rotate3d(2, 3, 4, 10deg)",
asMatrix: new Matrix(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 Rotation(-1.2, 2, 3.7, -4), angle: -1.2, x: 2, y: 3.7, z: -4,
+ {input: new CSSRotation(-1.2, 2, 3.7, -4), angle: -1.2, x: 2, y: 3.7, z: -4,
is2DComponent: false, cssString: "rotate3d(2, 3.7, -4, -1.2deg)",
asMatrix: new Matrix(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)}
@@ -40,19 +40,19 @@ test(function() {
assert_equals(values[i].input.y, values[i].y);
assert_equals(values[i].input.z, values[i].z);
}
-}, "Test that the (angle, x, y, z) values for Rotation are correct.");
+}, "Test that the (angle, x, y, z) values for CSSRotation are correct.");
test(function() {
for (var i = 0; i < values.length; ++i) {
assert_equals(values[i].input.is2DComponent(), values[i].is2DComponent);
}
-}, "Test that the is2DComponent values for Rotation is correct.");
+}, "Test that the is2DComponent values for CSSRotation is correct.");
test(function() {
for (var i = 0; i < values.length; ++i) {
assert_equals(values[i].input.cssString, values[i].cssString);
}
-}, "Test that cssString values for Rotation is correct.");
+}, "Test that cssString values for CSSRotation is correct.");
test(function() {
for (var i = 0; i < values.length; ++i) {
@@ -64,13 +64,13 @@ test(function() {
if (typeof expectedMatrix[attribute] === "number") {
assert_approx_equals(inputAsMatrix[attribute], expectedMatrix[attribute], EPSILON);
} else if (attribute != "cssString") {
- // Due to the complex trigonometric calculations required for a Rotation matrix,
+ // Due to the complex trigonometric calculations required for a CSSRotation matrix,
// the 6 significant figures of each value in the cssString might be different.
// Hence, do not check cssString.
assert_equals(inputAsMatrix[attribute], expectedMatrix[attribute]);
}
}
}
-}, "Test that asMatrix is constructed correctly for Rotation.");
+}, "Test that asMatrix is constructed correctly for CSSRotation.");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/typedcssom/rotationTransformComponent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698