summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fullscreen/api/document-onfullscreenerror.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/fullscreen/api/document-onfullscreenerror.html')
-rw-r--r--testing/web-platform/tests/fullscreen/api/document-onfullscreenerror.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fullscreen/api/document-onfullscreenerror.html b/testing/web-platform/tests/fullscreen/api/document-onfullscreenerror.html
new file mode 100644
index 000000000..f5eaaf441
--- /dev/null
+++ b/testing/web-platform/tests/fullscreen/api/document-onfullscreenerror.html
@@ -0,0 +1,13 @@
+<!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)
+{
+ assert_equals(document.onfullscreenerror, null, "initial onfullscreenerror");
+ document.onfullscreenerror = t.step_func_done();
+ document.createElement("a").requestFullscreen();
+});
+</script>