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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/clear-svg-animation-effects.html

Issue 1474263002: Clear SVG Web Animation effects when animations exit their fill phase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgPathInterpolationType
Patch Set: Check rare data Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/KeyframeEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script>
3 <svg>
4 <stop id="target" offset="1"/>
5 </svg>
6 <script>
7 var asyncHandle = async_test('SVG Attributes should return to their base values after animations have stopped applying.');
8
9 var animation = target.animate([
10 {svgOffset: '0'},
11 {svgOffset: '0.5'},
12 ], 1000);
13 animation.pause();
14 animation.currentTime = 500;
15
16 requestAnimationFrame(() => {
17 asyncHandle.step(() => {
18 assert_equals(target.offset.animVal, 0.25, 'Animation is in effect.');
19 });
20 animation.cancel();
21 requestAnimationFrame(() => {
22 asyncHandle.step(() => {
23 assert_equals(target.offset.animVal, 1, 'Animation is no longer in effect. ');
24 });
25 asyncHandle.done();
26 });
27 });
28 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/KeyframeEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698