blob: 20a554bd6859b4d6709d3889e370cd950c6884f6 [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() {
run('internals.settings.setAllowsInlineMediaPlayback(false)');
video = document.createElement('video');
document.body.appendChild(video);
video.src = findMediaFile('video', 'content/test');
waitForEvent('canplaythrough', canPlayThrough);
}
function canPlayThrough() {
video.play();
waitForEventAndFail('playing');
setTimeout(didNotPlay, 100);
}
function didNotPlay() {
logResult(true, "Video did not begin playing");
endTest();
}
</script>
</head>
<body onload="go()">
</body>
</html>