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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-finish-promise-gc.html

Issue 2535793002: Revert of Blink Animation: Extend Animation's GC lifetime if it has a finish promise. (Closed)
Patch Set: Created 4 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/Animation.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 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Garbage collect an animation with a finish promise</title>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <body>
7 <script>
8 function gc()
9 {
10 return GCController.collectAll();
11 }
12
13 async_test(t => {
14 assert_exists(window, "GCController", "gc controller needed");
15 setInterval(gc, 0);
16
17 var anim = document.body.animate(null, 1);
18 var promise = anim.finished;
19
20 promise.then(() => {
21 t.done();
22 });
23 }, 'Animation finish promise resolved if animation is garbage collected');
24 </script>
25 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698