blob: c6ce1fdc016ec88ba0bd386b7d634f7fd1501b28 [file] [log] [blame]
<!DOCTYPE html>
<title>Element#requestFullscreen({ navigationUI }) support</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
// Tests for https://github.com/whatwg/fullscreen/pull/129. Because there are
// no normative requirements on what navigationUI should do, just test for
// basic support. (One could also check that the three allowed enum valid are
// supported and no others, but that would overlap with UA-specific tests.)
test(() => {
let invoked = false;
document.body.requestFullscreen({
get navigationUI() { invoked = true; return "irrelevant-value"; }
});
assert_true(invoked, "navigationUI getter invoked");
});
</script>