https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 80724663b04d82106448d9afcfe1a3fa63ba9e52 authored by François Doray on 28 March 2018, 20:58:32 UTC
Revert "bluetooth: FakeBluetoothChooser impl."
Tip revision: 8072466
remove-single-manual.html
<!DOCTYPE html>
<title>Remove the single element on the fullscreen element stack</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<div id="single"></div>
<script>
async_test(function(t)
{
    var single = document.getElementById("single");
    document.onfullscreenchange = t.step_func(function(event)
    {
        assert_equals(document.fullscreenElement, single);
        assert_equals(event.target, single);
        single.remove();
        document.onfullscreenchange = t.step_func_done(function(event)
        {
            assert_equals(document.fullscreenElement, null);
            assert_equals(event.target, document);
        });
    });
    trusted_request(t, single);
});
</script>
back to top