| Index: third_party/WebKit/LayoutTests/typedcssom/cssTransformValue.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssTransformValue.html b/third_party/WebKit/LayoutTests/typedcssom/cssTransformValue.html
|
| index 3e8623197176ed0b28ad94af2a6bd7d196c28a72..15e5224ce93c49a2b71603c0437c06cb06a98c37 100644
|
| --- a/third_party/WebKit/LayoutTests/typedcssom/cssTransformValue.html
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/cssTransformValue.html
|
| @@ -6,32 +6,38 @@
|
|
|
| test(function() {
|
| var transformValueObject = new CSSTransformValue();
|
| - assert_equals(transformValueObject.constructor.name, CSSTransformValue.name);
|
| + assert_equals(transformValueObject.constructor.name, CSSTransformValue.name);
|
| }, "A CSSTransformValue object can be constructed");
|
|
|
| test(function() {
|
| - var transformArray = [new CSSScale(2,2),
|
| - new CSSMatrixComponent(new DOMMatrixReadOnly([1,1,1,1,1,1])), new CSSScale(5,6)];
|
| + var transformArray = [
|
| + new CSSScale(2, 2),
|
| + new CSSMatrixComponent(new DOMMatrixReadOnly([1, 1, 1, 1, 1, 1])),
|
| + new CSSScale(5, 6)
|
| + ];
|
| var transformValue = new CSSTransformValue(transformArray);
|
| assert_true(transformValue.is2D);
|
| }, "is2D returns true for transformValues containing only 2D transformComponents");
|
|
|
| test(function() {
|
| - var transformArray = [new CSSScale(2,2),
|
| - new CSSMatrixComponent(new DOMMatrixReadOnly([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1])), new CSSScale(5,6)];
|
| + var transformArray = [
|
| + new CSSScale(2, 2),
|
| + new CSSMatrixComponent(new DOMMatrixReadOnly([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])),
|
| + new CSSScale(5, 6)
|
| + ];
|
| var transformValue = new CSSTransformValue(transformArray);
|
| assert_false(transformValue.is2D);
|
| }, "is2D returns false for transformValues containing both 2D and 3D transformComponents");
|
|
|
| test(function() {
|
| - var transformArray = [new CSSScale(2,2),
|
| - new CSSMatrixComponent(new DOMMatrixReadOnly([1,1,1,1,1,1])), new CSSScale(5,6)];
|
| + var transformArray = [
|
| + new CSSScale(2, 2),
|
| + new CSSMatrixComponent(new DOMMatrixReadOnly([1, 1, 1, 1, 1, 1])),
|
| + new CSSScale(5, 6)
|
| + ];
|
| var transformValue = new CSSTransformValue(transformArray);
|
|
|
| - var newTransformArray = [];
|
| - for (var component of transformValue) {
|
| - newTransformArray.push(component);
|
| - }
|
| + var newTransformArray = [...transformValue];
|
| assert_true(newTransformArray.length == 3);
|
| assert_equals(newTransformArray[0].constructor.name, CSSScale.name);
|
| assert_equals(newTransformArray[1].constructor.name, CSSMatrixComponent.name);
|
| @@ -39,6 +45,3 @@ test(function() {
|
| }, "CSSTransformValue can iterate through all its all its transformComponent members");
|
|
|
| </script>
|
| -
|
| -<body>
|
| -</body>
|
|
|