2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 async_test(function(t
) {
7 var player
= document
.documentElement
.animate([], 100000);
9 player
.ready
.then(function() {
14 player
.finished
.then(function() {
21 }, 'The ready promise should be resolved before the finished promise');
23 async_test(function(t
) {
24 var player
= document
.documentElement
.animate([], 100000);
26 player
.ready
.then(null, function() {
31 player
.finished
.then(null, function() {
38 }, 'The ready promise should be rejected before the finished promise');