
      return animation.ready;
    }).then(animation => {
      assert_equals(animation.currentTime, 1000 * MS_PER_SEC,
                    'currentTime after pausing finished animation');
    });
}, 'pause() on a finished animation');

</script>
</body>
