blob: c06f3f062e99a68c1c4d66742abee2fa133a8889 [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');
video.controls = ""
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: 400px;
height: 299px;
}
</style>
</head>
<body onload="go()">
</body>
</html>