| Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform-rotation.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform-rotation.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform-rotation.html
|
| deleted file mode 100644
|
| index 08c65b439cf6295d74458709d7302d19a520cca4..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform-rotation.html
|
| +++ /dev/null
|
| @@ -1,75 +0,0 @@
|
| -<script src="../../resources/testharness.js"></script>
|
| -<script src="../../resources/testharnessreport.js"></script>
|
| -
|
| -<div id="testElement"></div>
|
| -
|
| -<script>
|
| -
|
| -var EPSILON = 1e-6; // float epsilon
|
| -
|
| -function validateTransformWithSingleRotation(transform, x, y, z, angle, cssText) {
|
| - assert_equals(transform.cssText, cssText);
|
| -
|
| - // Shouldn't be base StyleValue as for unsupported values.
|
| - assert_true(transform instanceof CSSTransformValue);
|
| -
|
| - var components = [...transform.values()];
|
| - assert_equals(components.length, 1);
|
| - assert_true(components[0] instanceof CSSRotation);
|
| - assert_equals(components[0].cssText, cssText);
|
| -
|
| - assert_approx_equals(components[0].angle.degrees, angle, EPSILON);
|
| - assert_approx_equals(components[0].x, x, EPSILON);
|
| - assert_approx_equals(components[0].y, y, EPSILON);
|
| - assert_approx_equals(components[0].z, z, EPSILON);
|
| -}
|
| -
|
| -test(function() {
|
| - testElement.style.transform = "rotateX(45deg)";
|
| - validateTransformWithSingleRotation(
|
| - testElement.styleMap.get("transform"),
|
| - 1, 0, 0, 45,
|
| - "rotate3d(1, 0, 0, 45deg)");
|
| -}, "rotateX read from a StyleMap results in a rotate3d");
|
| -
|
| -test(function() {
|
| - testElement.style.transform = "rotateX(1rad)";
|
| - validateTransformWithSingleRotation(
|
| - testElement.styleMap.get("transform"),
|
| - 1, 0, 0, 57.29578,
|
| - "rotate3d(1, 0, 0, 1rad)");
|
| -}, "rotateX with units other than degrees");
|
| -
|
| -test(function() {
|
| - testElement.style.transform = "rotateY(80deg)";
|
| - validateTransformWithSingleRotation(
|
| - testElement.styleMap.get("transform"),
|
| - 0, 1, 0, 80,
|
| - "rotate3d(0, 1, 0, 80deg)");
|
| -}, "rotateY read from a StyleMap results in a rotate3d");
|
| -
|
| -test(function() {
|
| - testElement.style.transform = "rotateY(2grad)";
|
| - validateTransformWithSingleRotation(
|
| - testElement.styleMap.get("transform"),
|
| - 0, 1, 0, 1.8,
|
| - "rotate3d(0, 1, 0, 2grad)");
|
| -}, "rotateY with units other than degrees");
|
| -
|
| -test(function() {
|
| - testElement.style.transform = "rotateZ(100deg)";
|
| - validateTransformWithSingleRotation(
|
| - testElement.styleMap.get("transform"),
|
| - 0, 0, 1, 100,
|
| - "rotate3d(0, 0, 1, 100deg)");
|
| -}, "rotateZ read from a StyleMap results in a rotate3d");
|
| -
|
| -test(function() {
|
| - testElement.style.transform = "rotateZ(1turn)";
|
| - validateTransformWithSingleRotation(
|
| - testElement.styleMap.get("transform"),
|
| - 0, 0, 1, 360,
|
| - "rotate3d(0, 0, 1, 1turn)");
|
| -}, "rotateZ with units other than degrees");
|
| -
|
| -</script>
|
|
|