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

Side by Side Diff: LayoutTests/web-animations-api/finish-event-after-gc.html

Issue 284323004: Web Animations: Make AnimationPlayer an ActiveDOMObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 7 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 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <body>
5 <script>
6 var layoutTest = async_test('Finish event should be delivered even if a GC occur s. This test passes if it does not time out.');
7 var events = 0;
8
9 function finish() {
10 if (window.GCController)
11 GCController.collect();
12 if (++events == 2)
13 layoutTest.done();
14 }
15
16 // Use a distinct, unreferenced instance of the handler function.
17 document.body.animate([]).onfinish = finish.bind();
18 document.body.animate([]).onfinish = finish.bind();
19
20 if (window.GCController)
21 GCController.collect();
22 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.h » ('j') | Source/core/animation/AnimationPlayer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698