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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform-rotation.html

Issue 2546343002: [CSS Typed OM] Add additional test capability for string->CSSStyleValue in property-suite (Closed)
Patch Set: fix location of quotes Created 4 years 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 | « third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698