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

Unified Diff: ManualTests/rotate-zero-degrees.html

Issue 1322843002: Fix for rotate from 0deg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: ManualTests/rotate-zero-degrees.html
diff --git a/ManualTests/rotate-zero-degrees.html b/ManualTests/rotate-zero-degrees.html
new file mode 100644
index 0000000000000000000000000000000000000000..1cfa02b453c199f61c3e64f7a07a18cad262004a
--- /dev/null
+++ b/ManualTests/rotate-zero-degrees.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<style>
+div {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+}
+
+#target {
+ border: solid red;
+}
+
+#expected {
+ border: solid green;
+}
+</style>
+
+<div id="target"></div>
+<div id="expected"></div>
+
+<script>
+// Both divs should rotate equally - Same speed, same angle
+
+var targetKeyframes = [{ rotate: '0deg 0 1 0' }, { rotate: '450deg 1 0 0'}]
+var expectedKeyframes = [{ rotate: '0deg 1 0 0' }, { rotate: '450deg 1 0 0'}]
+
+target.animate(targetKeyframes, { duration: 4000, iterations: Infinity });
+expected.animate(expectedKeyframes, { duration: 4000, iterations: Infinity });
+
+</script>
alancutter (OOO until 2018) 2015/09/01 01:48:46 Please don't add manual tests.
Eric Willigers 2015/09/01 06:24:42 Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698