Index: LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html |
diff --git a/LayoutTests/fullscreen/model/remove-first.html b/LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html |
similarity index 82% |
copy from LayoutTests/fullscreen/model/remove-first.html |
copy to LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html |
index 75458cb7a738f2bef187a513d1d1987e1aad5304..5771bbf78828a0955fb4a3a111a73aa63c667174 100644 |
--- a/LayoutTests/fullscreen/model/remove-first.html |
+++ b/LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html |
@@ -1,8 +1,9 @@ |
<!DOCTYPE html> |
-<title>Remove the first element on the fullscreen element stack</title> |
+<title>Fully exit fullscreen with two elements on stack</title> |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
<script src="../trusted-event.js"></script> |
+<script src="fully-exit-fullscreen.js"></script> |
<div id="log"></div> |
<div id="first"> |
<div id="last"></div> |
@@ -20,7 +21,7 @@ async_test(function(t) |
document.onfullscreenchange = t.step_func(function() |
{ |
assert_equals(document.fullscreenElement, last); |
- first.remove(); |
+ trusted_event(fully_exit_fullscreen.bind(null, document), last); |
document.onfullscreenchange = t.step_func(function() |
{ |
assert_equals(document.fullscreenElement, null); |