properly removed.
  await waitForNextFrame(1);
  assert_array_equals(div.getAnimations(), [animB]);
}, 'Does not return an animation that has been removed');

promise_test(async t => {
  const div = createDiv(t);

  const animA = div.animate({ opacity: 1 }, { duration: 1, fill: 'forwards' });
  const animB = div.animate({ opacity: 1 }, { duration: 1, fill: 'forwards' });
  await animA.finished;

  animA.persist();

  assert_array_equals(div.getAnimations(), [animA, animB]);
}, 'Returns an animation that has