e() a running animation');

promise_test(t => {
  const div = createDiv(t);
  const animation = div.animate({}, 1000 * MS_PER_SEC);

  // Go to idle state then pause
  animation.cancel();
  animation.pause();

  assert_equals(animation.currentTime, 0, 'currentTime is set to 0');
  assert_equals(animation.startTime, null, 'startTime is not set');
  assert_equals(animation.playState, 'paused', 'in paused play state');
  assert_true(animation.pending, 'initially pause-pending');

  // Check it still resolves a