mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-27 10:41:16 +00:00
26 lines
855 B
HTML
26 lines
855 B
HTML
<!DOCTYPE html>
|
|
<title>Document#fullscreenEnabled</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<iframe src="blank.html"></iframe>
|
|
<iframe allowfullscreen src="blank.html"></iframe>
|
|
<script>
|
|
async_test(function(t)
|
|
{
|
|
assert_true(document.fullscreenEnabled, "top-level document");
|
|
|
|
var iframes = document.getElementsByTagName("iframe");
|
|
|
|
var loaded = 0;
|
|
iframes[0].onload = t.step_func(function() {
|
|
assert_false(iframes[0].contentDocument.fullscreenEnabled, "iframe without allowfullscreen");
|
|
if (++loaded == 2) t.done();
|
|
});
|
|
iframes[1].onload = t.step_func(function() {
|
|
assert_true(iframes[1].contentDocument.fullscreenEnabled, "iframe with allowfullscreen");
|
|
if (++loaded == 2) t.done();
|
|
});
|
|
});
|
|
</script>
|