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

Unified Diff: LayoutTests/animations/composition/left-composition.html

Issue 1326443003: Web Animations: Enable additive animations in experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update missed tests Created 5 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/resources/interpolation-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/composition/left-composition.html
diff --git a/LayoutTests/animations/composition/left-composition.html b/LayoutTests/animations/composition/left-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..ae89c507ac484be6584dd0985944c18bf07088f7
--- /dev/null
+++ b/LayoutTests/animations/composition/left-composition.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.target {
+ position: relative;
+ width: 10px;
+ height: 10px;
+ background-color: black;
+}
+.expected {
+ background-color: green;
+}
+</style>
+<body>
+<script src="../interpolation/resources/interpolation-test.js"></script>
+<script>
+assertComposition({
+ property: 'left',
+ underlying: '50px',
+ addFrom: '100px',
+ addTo: '200px',
+}, [
+ {at: -0.3, is: '120px'},
+ {at: 0, is: '150px'},
+ {at: 0.5, is: '200px'},
+ {at: 1, is: '250px'},
+ {at: 1.5, is: '300px'},
+]);
+
+assertComposition({
+ property: 'left',
+ underlying: '50px',
+ addFrom: '100px',
+ replaceTo: '200px',
+}, [
+ {at: -0.3, is: '135px'},
+ {at: 0, is: '150px'},
+ {at: 0.5, is: '175px'},
+ {at: 1, is: '200px'},
+ {at: 1.5, is: '225px'},
+]);
+
+assertComposition({
+ property: 'left',
+ underlying: 'auto',
+ addFrom: '100px',
+ addTo: '200px',
+}, [
+ {at: -0.3, is: '70px'},
+ {at: 0, is: '100px'},
+ {at: 0.5, is: '150px'},
+ {at: 1, is: '200px'},
+ {at: 1.5, is: '250px'},
+]);
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/resources/interpolation-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698