summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fullscreen/api/element-request-fullscreen-manual.html
blob: 81bd6a05e34a000d5cb5e38c4b280466b34b6c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<title>Element.requestFullscreen()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<script>
async_test(function(t)
{
    var div = document.querySelector("div");

    document.addEventListener("fullscreenchange", t.step_func(function(event)
    {
        assert_equals(event.target, document, "event.target");
        assert_false(event.bubbles, "event.bubbles");
        assert_false(event.cancelable, "event.cancelable");
        t.done();
    }));

    trusted_request(div);
});
</script>