29 lines
703 B
HTML
29 lines
703 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>video-muted-holds-sleep-assertion</title>
|
||
|
<script src="video-test.js"></script>
|
||
|
<script src="media-file.js"></script>
|
||
|
<script>
|
||
|
var loader;
|
||
|
var source;
|
||
|
var sourceBuffer;
|
||
|
|
||
|
window.addEventListener('load', async event => {
|
||
|
findMediaElement();
|
||
|
|
||
|
run('video.src = findMediaFile("video", "content/test")');
|
||
|
await waitFor(video, 'canplaythrough');
|
||
|
|
||
|
run('video.play()');
|
||
|
await waitFor(video, 'playing');
|
||
|
|
||
|
testExpected('internals.elementIsBlockingDisplaySleep(video)', false);
|
||
|
endTest();
|
||
|
}, {once: true});
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<video controls muted></video>
|
||
|
</body>
|
||
|
</html>
|