https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 34dfe32379a4e905b318f825fd6eab4c96bfc8c4 authored by Luke Bjerring on 11 May 2018, 19:30:08 UTC
Merge branch 'master' into idlharness-dependencies
Tip revision: 34dfe32
document-onfullscreenerror.html
<!DOCTYPE html>
<title>Document#onfullscreenerror</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test(function(t)
{
    var sync = true;
    assert_equals(document.onfullscreenerror, null, "initial onfullscreenerror");
    document.onfullscreenerror = t.step_func_done(function(event) {
        assert_false(sync);
    });
    var e = document.createElement('span');
    e.requestFullscreen();
    sync = false;
});
</script>
back to top