| Index: LayoutTests/fullscreen/model/remove-parent.html
|
| diff --git a/LayoutTests/fullscreen/model/remove-single.html b/LayoutTests/fullscreen/model/remove-parent.html
|
| similarity index 64%
|
| copy from LayoutTests/fullscreen/model/remove-single.html
|
| copy to LayoutTests/fullscreen/model/remove-parent.html
|
| index 8c88adb310ae9f72b5b1ff09c5873a247a33549a..540fae607106c1b2f6f0a436fbb1129c1f6bd653 100644
|
| --- a/LayoutTests/fullscreen/model/remove-single.html
|
| +++ b/LayoutTests/fullscreen/model/remove-parent.html
|
| @@ -1,24 +1,26 @@
|
| <!DOCTYPE html>
|
| -<title>Remove the single element on the fullscreen element stack</title>
|
| +<title>Remove the parent of the fullscreen element</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>
|
| +<div>
|
| + <div id="child"></div>
|
| +</div>
|
| <script>
|
| async_test(function(t)
|
| {
|
| - var single = document.getElementById("single");
|
| + var child = document.getElementById("child");
|
| + trusted_request(child);
|
| document.onfullscreenchange = t.step_func(function()
|
| {
|
| - assert_equals(document.fullscreenElement, single);
|
| - single.remove();
|
| + assert_equals(document.fullscreenElement, child);
|
| + child.parentNode.remove();
|
| document.onfullscreenchange = t.step_func(function()
|
| {
|
| assert_equals(document.fullscreenElement, null);
|
| t.done();
|
| });
|
| });
|
| - trusted_request(single);
|
| });
|
| </script>
|
|
|