<html class="reftest-wait">
<head>
<script>
(async _ => {
  const video = document.createElement("video");
    video.mozCaptureStreamUntilEnded();
    video.src = "test.mp4";
    await video.play();
    for (let i = 0; i < 23; i++) {
      console.log("nop");
      await video.seekToNextFrame();
      video.removeAttribute("readonly");
    }
    setTimeout("self.close()", 100);
    document.documentElement.removeAttribute("class");
})();
</script>
</head>
</html>
