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

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

Issue 2097093002: [Typed OM] Rename cssString methods to cssText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-transformvalue
Patch Set: Update usage in csspaint logging for tests Created 4 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/cssRotation.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html b/third_party/WebKit/LayoutTests/typedcssom/cssRotation.html
index 13e861e0095a6fdb22a9b5378f1cc108db489bdc..363bb86ff36f1b659881d2c3f27ec4e230c09fa4 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, cssString: "rotate(0deg)",
+ is2DComponent: 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, cssString: "rotate(10deg)",
+ is2DComponent: 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, cssString: "rotate(10deg)",
+ is2DComponent: 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, cssString: "rotate(-21deg)",
+ is2DComponent: 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, cssString: "rotate(3.2deg)",
+ is2DComponent: 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, cssString: "rotate3d(0, 0, 1, 90deg)",
+ is2DComponent: 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, cssString: "rotate3d(2.7, -3, 4.4, 0deg)",
+ is2DComponent: 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, cssString: "rotate3d(2, 3, 4, 10deg)",
+ is2DComponent: 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, cssString: "rotate3d(2, 3.7, -4, -1.2deg)",
+ is2DComponent: 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, cssString: "rotate3d(1, 0, 0, 180deg)",
+ is2DComponent: 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)}
];
@@ -57,9 +57,9 @@ test(function() {
test(function() {
for (var i = 0; i < values.length; ++i) {
- assert_equals(values[i].input.cssString, values[i].cssString);
+ assert_equals(values[i].input.cssText, values[i].cssText);
}
-}, "Test that cssString values for CSSRotation is correct.");
+}, "Test that cssText values for CSSRotation is correct.");
test(function() {
for (var i = 0; i < values.length; ++i) {
@@ -70,10 +70,10 @@ test(function() {
for (var attribute in expectedMatrix) {
if (typeof expectedMatrix[attribute] === "number") {
assert_approx_equals(inputAsMatrix[attribute], expectedMatrix[attribute], EPSILON);
- } else if (attribute != "cssString") {
+ } else if (attribute != "cssText") {
// 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.
+ // the 6 significant figures of each value in the cssText might be different.
+ // Hence, do not check cssText.
assert_equals(inputAsMatrix[attribute], expectedMatrix[attribute]);
}
}

Powered by Google App Engine
This is Rietveld 408576698