blob: 2afdcbae6f8f163d8c47fe94d7908ae63677090e [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();
waitForEventAndEnd('playing');
failTestIn(100);
}
</script>
<style>
video {
width: 270px;
height: 480px;
}
</style>
</head>
<body onload="go()">
</body>
</html>