| Index: LayoutTests/fullscreen/model/remove-single.html
|
| diff --git a/LayoutTests/fullscreen/model/remove-single.html b/LayoutTests/fullscreen/model/remove-single.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8c88adb310ae9f72b5b1ff09c5873a247a33549a
|
| --- /dev/null
|
| +++ b/LayoutTests/fullscreen/model/remove-single.html
|
| @@ -0,0 +1,24 @@
|
| +<!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-event.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()
|
| + {
|
| + assert_equals(document.fullscreenElement, single);
|
| + single.remove();
|
| + document.onfullscreenchange = t.step_func(function()
|
| + {
|
| + assert_equals(document.fullscreenElement, null);
|
| + t.done();
|
| + });
|
| + });
|
| + trusted_request(single);
|
| +});
|
| +</script>
|
|
|