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

Unified Diff: third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/translate-rotate-scale.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/translate-rotate-scale.js
diff --git a/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/translate-rotate-scale.js b/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/translate-rotate-scale.js
new file mode 100644
index 0000000000000000000000000000000000000000..36baa7f8090dd875d5d04b0123cd448b6ccb57d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/translate-rotate-scale.js
@@ -0,0 +1,72 @@
+var translateRotateScaleTests = {
+ tests: {
+ animateTranslate: {
+ keyframes: [
+ {translate: '0px'},
+ {translate: '600px'}
+ ],
+ style: 'background: darkgreen; float: none;',
+ samples: [
+ {at: 0},
+ {at: 0.15},
+ {at: 0.25},
+ {at: 0.35},
+ {at: 0.5},
+ {at: 0.65},
+ {at: 0.75},
+ {at: 0.85},
+ {at: 1.05},
+ {at: 1.15},
+ ]
+ },
+
+ animateRotate: {
+ keyframes: [
+ {rotate: '-10deg'},
+ {rotate: '470deg'}
+ ],
+ style: 'background: maroon; margin: 5px;',
+ samples: [
+ {at: 0},
+ {at: 0.05},
+ {at: 0.15},
+ {at: 0.25},
+ {at: 0.35},
+ {at: 0.45},
+ {at: 0.5},
+ {at: 0.55},
+ {at: 0.65},
+ {at: 0.75},
+ {at: 0.85},
+ {at: 0.95},
+ {at: 1.05},
+ {at: 1.15},
+ ]
+ },
+
+ animateScale: {
+ keyframes: [
+ {scale: '0.1'},
+ {scale: '1'}
+ ],
+ style: 'background: peru; margin: 5px;',
+ markerStyle: '', // No marker. This mustn't affect cc/blink consistency, crbug.com/531290
+ samples: [
+ {at: 0},
+ {at: 0.05},
+ {at: 0.15},
+ {at: 0.25},
+ {at: 0.35},
+ {at: 0.45},
+ {at: 0.5},
+ {at: 0.55},
+ {at: 0.65},
+ {at: 0.75},
+ {at: 0.85},
+ {at: 0.95},
+ {at: 1.05},
+ {at: 1.15},
+ ]
+ },
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698