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

Unified Diff: LayoutTests/fullscreen/model/fully-exit-fullscreen-single.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-single.html
diff --git a/LayoutTests/fullscreen/model/remove-single.html b/LayoutTests/fullscreen/model/fully-exit-fullscreen-single.html
similarity index 77%
copy from LayoutTests/fullscreen/model/remove-single.html
copy to LayoutTests/fullscreen/model/fully-exit-fullscreen-single.html
index 8c88adb310ae9f72b5b1ff09c5873a247a33549a..a7458e84bfdaea29e5c84f41064974d12be908fd 100644
--- a/LayoutTests/fullscreen/model/remove-single.html
+++ b/LayoutTests/fullscreen/model/fully-exit-fullscreen-single.html
@@ -1,24 +1,25 @@
<!DOCTYPE html>
-<title>Remove the single element on the fullscreen element stack</title>
+<title>Fully exit fullscreen with single element 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="single"></div>
<script>
async_test(function(t)
{
var single = document.getElementById("single");
+ trusted_request(single);
document.onfullscreenchange = t.step_func(function()
{
assert_equals(document.fullscreenElement, single);
- single.remove();
+ trusted_event(fully_exit_fullscreen.bind(null, document), single);
document.onfullscreenchange = t.step_func(function()
{
assert_equals(document.fullscreenElement, null);
t.done();
});
});
- trusted_request(single);
});
</script>
« no previous file with comments | « LayoutTests/fullscreen/model/fully-exit-fullscreen-nested-iframe.html ('k') | Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698