blob: abc278ff92fae1d2f2515dd874c7c734355563c6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>video-main-content-allow</title>
<script src="video-test.js"></script>
<script src="media-file.js"></script>
<script>
function go() {
video = document.createElement('video');
run('internals.setMediaElementRestrictions(video, "RequireUserGestureForVideoRateChange,OverrideUserGestureRequirementForMainContent")');
document.body.appendChild(video);
video.src = findMediaFile('video', 'content/test');
waitForEvent('canplaythrough', canPlayThrough);
}
function canPlayThrough() {
video.play();
waitForEventAndFail('playing');
setTimeout(didNotBeginPlaying, 100);
}
function didNotBeginPlaying() {
logResult(true, 'Did not begin playing');
endTest();
}
</script>
<style>
video {
width: 600px;
height: 400px;
display: none;
}
</style>
</head>
<body onload="go()">
</body>
</html>