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

Unified Diff: LayoutTests/animations/retain-zero-percent.html

Issue 1248093002: Move interpolated Length unit types out of InterpolableValue into NonInterpolableValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again 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 | « LayoutTests/animations/composition/left-composition.html ('k') | Source/core/animation/InterpolationType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/retain-zero-percent.html
diff --git a/LayoutTests/animations/retain-zero-percent.html b/LayoutTests/animations/retain-zero-percent.html
new file mode 100644
index 0000000000000000000000000000000000000000..4838d467efddec35cc9153dca5491c304a75ee8b
--- /dev/null
+++ b/LayoutTests/animations/retain-zero-percent.html
@@ -0,0 +1,11 @@
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div id="target"></div>
+<script>
+test(function() {
+ var animation = target.animate([{motionOffset: '-1%'}, {motionOffset: '1%'}], 1);
+ animation.pause();
+ animation.currentTime = 0.5;
+ assert_equals(getComputedStyle(target).motionOffset, '0%');
+});
+</script>
« no previous file with comments | « LayoutTests/animations/composition/left-composition.html ('k') | Source/core/animation/InterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698