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/transformValue.html

Issue 1664093002: CSS Typed OM: TransformComponent names match the spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/transformValue.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/transformValue.html b/third_party/WebKit/LayoutTests/typedcssom/transformValue.html
index 375033a2958b4daaf8de6c8b1df3d8ee9563eaf8..bcbe434b80012a7cca865ac74f5a6c76e2312062 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/transformValue.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/transformValue.html
@@ -11,22 +11,22 @@ test(function() {
}, "A TransformValue object can be constructed");
test(function() {
- var transformArray = [new ScaleTransformComponent(2,2),
- new MatrixTransformComponent(1,1,1,1,1,1), new ScaleTransformComponent(5,6)];
+ var transformArray = [new Scale(2,2),
+ new Matrix(1,1,1,1,1,1), new Scale(5,6)];
var transformValue = new TransformValue(transformArray);
assert_true(transformValue.is2D());
}, "is2D returns true for transformValues containing only 2D transformComponents");
test(function() {
- var transformArray = [new ScaleTransformComponent(2,2),
- new MatrixTransformComponent(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1), new ScaleTransformComponent(5,6)];
+ var transformArray = [new Scale(2,2),
+ new Matrix(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1), new Scale(5,6)];
var transformValue = new TransformValue(transformArray);
assert_false(transformValue.is2D());
}, "is2D returns false for transformValues containing both 2D and 3D transformComponents");
test(function() {
- var transformArray = [new ScaleTransformComponent(2,2),
- new MatrixTransformComponent(1,1,1,1,1,1), new ScaleTransformComponent(5,6)];
+ var transformArray = [new Scale(2,2),
+ new Matrix(1,1,1,1,1,1), new Scale(5,6)];
var transformValue = new TransformValue(transformArray);
var newTransformArray = [];
@@ -34,9 +34,9 @@ test(function() {
newTransformArray.push(component);
}
assert_true(newTransformArray.length == 3);
- assert_true(newTransformArray[0] instanceof ScaleTransformComponent);
- assert_true(newTransformArray[1] instanceof MatrixTransformComponent);
- assert_true(newTransformArray[2] instanceof ScaleTransformComponent);
+ assert_true(newTransformArray[0] instanceof Scale);
+ assert_true(newTransformArray[1] instanceof Matrix);
+ assert_true(newTransformArray[2] instanceof Scale);
}, "TransformValue can iterate through all its all its transformComponent members");
</script>

Powered by Google App Engine
This is Rietveld 408576698