https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 055367b2fd8b94dc54cccddfd069fb9bcd5261f1 authored by Robert Ma on 15 March 2018, 21:39:41 UTC
Document how to install the CA cert on Android
Tip revision: 055367b
remove-parent-manual.html
<!DOCTYPE html>
<title>Remove the parent of the fullscreen element</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<div>
    <div id="child"></div>
</div>
<script>
async_test(function(t)
{
    var child = document.getElementById("child");
    trusted_request(t, child);
    document.onfullscreenchange = t.step_func(function(event)
    {
        assert_equals(document.fullscreenElement, child);
        assert_equals(event.target, child);
        child.parentNode.remove();
        document.onfullscreenchange = t.step_func_done(function(event)
        {
            assert_equals(document.fullscreenElement, null);
            assert_equals(event.target, document);
        });
    });
});
</script>
back to top