haikuwebkit/LayoutTests/media/video-ended-event-negative-...

25 lines
793 B
HTML

<html>
<head>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
function start() {
findMediaElement();
waitForEventAndEnd('ended');
video.src = findMediaFile("video", "content/test");
waitForEventOnce('canplaythrough',
function ()
{
video.currentTime = 0.5;
video.playbackRate = -1;
});
}
waitForEventOnce('seeked', () => { video.play(); });
waitForEventOnce('playing', () => { failTestIn(5000); });
</script>
</head>
<body onload="start()">
<video loop />
</body>
</html>