blob: 4d0ff1e735968e8053d74a873da1872f7c56dff7 [file] [log] [blame]
<!doctype html>
<html>
<head>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
window.addEventListener('load', async evt => {
if (!window.internals) {
failTest("This test requires internals.")
return;
}
let hack = internals.nowPlayingState;
findMediaElement();
video.src = findMediaFile("video", "content/test");
await waitFor(video, 'loadedmetadata');
run("internals.settings.setFullScreenEnabled(false)");
testExpected("video.webkitSupportsFullscreen", false);
run("internals.settings.setFullScreenEnabled(true)");
testExpected("video.webkitSupportsFullscreen", true);
endTest();
}, { once: true });
</script>
</head>
<body>
<video controls playsinline></video>
<p>Test that video.webkitSupportsFullscreen returns false unless the setting is enbled.</p>
</body>
</html>