Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html

Issue 470723002: Sync "fully exit fullscreen" with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test with window.open() Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698