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

Unified Diff: third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/rotate-zero-degrees.js

Issue 1360233004: Composited Animations: Introduce pixel-ref layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up. Created 5 years, 2 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/animations/resources/composited-animations-data/rotate-zero-degrees.js
diff --git a/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/rotate-zero-degrees.js b/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/rotate-zero-degrees.js
new file mode 100644
index 0000000000000000000000000000000000000000..a0b510385621fe83a573d6542b3dfeea5e80ebb0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/rotate-zero-degrees.js
@@ -0,0 +1,68 @@
+var rotateZeroDegreesTests = {
+ style: 'margin: 5px;',
+ tests: {
+ animateRotateNoFromAxis: {
+ keyframes: [
+ { rotate: '0deg' },
+ { rotate: '90deg 0 1 0' },
+ ],
+ style: 'background: magenta;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+
+ animateRotateNoToAxis: {
+ keyframes: [
+ { rotate: '0deg 1 0 0' },
+ { rotate: '90deg' },
+ ],
+ style: 'background: yellow;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+
+ animateRotateFromZeroUnder360: {
+ keyframes: [
+ { rotate: '0deg 1 0 0' },
+ { rotate: '90deg 0 1 0' },
+ ],
+ style: 'background: cyan;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+
+ animateRotateToZeroUnder360: {
+ keyframes: [
+ { rotate: '90deg 0 1 0' },
+ { rotate: '0deg 1 0 0' },
+ ],
+ style: 'background: indigo;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+
+ animateRotateFromZero: {
+ keyframes: [
+ { rotate: '0deg 1 0 0' },
+ { rotate: '450deg 0 1 0' },
+ ],
+ style: 'background: green;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+
+ animateRotateToZero: {
+ keyframes: [
+ { rotate: '450deg 0 1 0' },
+ { rotate: '0deg 1 0 0' },
+ ],
+ style: 'background: red;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+
+ animateRotateFromAndToZero: {
+ keyframes: [
+ { rotate: '0deg 0 1 0' },
+ { rotate: '0deg 1 0 0' },
+ ],
+ style: 'background: blue;',
+ samples: getLinearSamples(20, 0, 1)
+ },
+ }
+};
+

Powered by Google App Engine
This is Rietveld 408576698