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

Side by Side Diff: LayoutTests/web-animations-api/player-cancel-events.html

Issue 1158783011: Web Animations: Don't fire finish event when cancelling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 var anim1 = document.body.animate([], 100000);
7 var anim2 = document.body.animate([], 100000);
8 var anim3 = document.body.animate([], 100000);
9
10 var noFinish = async_test('Animation finish event should not fire when cancelled ');
11
12 anim1.onfinish = function() {
13 noFinish.step(function() {
14 anim3.finish();
15 });
16 };
17
18 anim2.onfinish = function() {
19 noFinish.step(function() {
20 assert_true(false);
21 });
22 };
23
24 anim3.onfinish = function() {
25 noFinish.done();
26 };
27
28 anim1.finish();
29 anim2.cancel();
30 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/web-animations-api/player-cancel-finishes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698