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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/timeline-updates-players.html

Issue 2140793003: Split timeline-updates-players test into two, update uses of Animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update help link Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/animation-update-effect.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <!-- This tests that players get updated even if they have previously had their effect removed or go out of effect. -->
6
7 <div id='element'></div>
8
9 <script>
10 var element = document.getElementById('element');
11 var keyframeEffect = new KeyframeEffect(element, [{left: '0px'}, {left: '100px'} ], 10);
12 test(function() {
13 var player = document.timeline.play(keyframeEffect);
14 player.finish();
15 assert_equals(getComputedStyle(element).left, 'auto');
16
17 player.play();
18 assert_equals(getComputedStyle(element).left, '0px');
19
20 player.finish();
21 }, 'Player updated after finish and play');
22
23 test(function() {
24 var player = document.timeline.play(keyframeEffect);
25 assert_equals(getComputedStyle(element).left, '0px');
26 var effect = player.effect
27 player.effect = null;
28 assert_equals(getComputedStyle(element).left, 'auto');
29
30 player.effect = effect;
31 assert_equals(getComputedStyle(element).left, '0px');
32
33 player.finish();
34 }, 'Player updated after clear and set effect');
35 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/animation-update-effect.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698