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

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

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Garbage collect an animation with a finish promise</title> 3 <title>Garbage collect an animation with a finish promise</title>
4 <script src="../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
6 <script src="../resources/gc.js"></script> 6 <script src="../resources/gc.js"></script>
7 <body> 7 <body>
8 <script> 8 <script>
9 async_test(t => { 9 async_test(t => {
10 assert_exists(window, "GCController", "gc controller needed"); 10 assert_exists(window, "GCController", "gc controller needed");
11 setInterval(gc, 0); 11 setInterval(gc, 0);
12 12
13 var anim = document.body.animate(null, 1); 13 var anim = document.body.animate(null, 1);
14 var promise = anim.finished; 14 var promise = anim.finished;
15 15
16 promise.then(() => { 16 promise.then(() => {
17 t.done(); 17 t.done();
18 }); 18 });
19 }, 'Animation finish promise resolved if animation is garbage collected'); 19 }, 'Animation finish promise resolved if animation is garbage collected');
20 </script> 20 </script>
21 </body> 21 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698