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

Unified Diff: third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/timing-function.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/timing-function.js
diff --git a/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/timing-function.js b/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/timing-function.js
new file mode 100644
index 0000000000000000000000000000000000000000..62698303a8476eba7f25a61f007185c50956447c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/resources/composited-animations-data/timing-function.js
@@ -0,0 +1,72 @@
+var timingFunctionTests = {
+ tests: {
+ translateSteps: {
+ keyframes: [
+ {transform: 'translateX(100px)'},
+ {transform: 'translateX(500px)'}
+ ],
+ easing: 'steps(9)',
+ style: 'background: maroon; float: none;',
+ samples: [
+ {at: 0},
+ {at: 0.25},
+ {at: 0.5},
+ {at: 0.75},
+ {at: 1.1},
+ ]
+ },
+
+ translateStepsPerKeyframe: {
+ keyframes: [
+ {transform: 'translateX(100px)', easing: 'steps(18)'},
+ {transform: 'translateX(400px)', easing: 'steps(9)'},
+ {transform: 'translateX(500px)'}
+ ],
+ style: 'background: navy; float: none;',
+ samples: [
+ {at: 0},
+ {at: 0.25},
+ {at: 0.35},
+ {at: 0.5},
+ {at: 0.65},
+ {at: 0.75},
+ {at: 1.1},
+ ]
+ },
+
+ translateStepsWithCubicBezier: {
+ keyframes: [
+ {transform: 'translateX(100px)', easing: 'steps(9)'},
+ {transform: 'translateX(500px)'}
+ ],
+ easing: 'cubic-bezier(.5, -1, .5, 2)',
+ style: 'background: black; float: none;',
+ samples: [
+ {at: 0},
+ {at: 0.4},
+ {at: 0.45},
+ {at: 0.5},
+ {at: 0.6},
+ {at: 1.41},
+ ]
+ },
+
+ translateCubicBezierWithSteps: {
+ keyframes: [
+ {transform: 'translateX(100px)', easing: 'cubic-bezier(.5, -1, .5, 2)'},
+ {transform: 'translateX(500px)'}
+ ],
+ easing: 'steps(9)',
+ style: 'background: peru; float: none;',
+ samples: [
+ {at: 0},
+ {at: 0.25},
+ {at: 0.35},
+ {at: 0.5},
+ {at: 0.65},
+ {at: 0.75},
+ {at: 1.39},
+ ]
+ },
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698