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

Unified Diff: LayoutTests/fullscreen/model/remove-first.html

Issue 476433002: Sync fullscreen element removal with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits 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
« no previous file with comments | « no previous file | LayoutTests/fullscreen/model/remove-last.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/model/remove-first.html
diff --git a/LayoutTests/fullscreen/model/remove-first.html b/LayoutTests/fullscreen/model/remove-first.html
new file mode 100644
index 0000000000000000000000000000000000000000..75458cb7a738f2bef187a513d1d1987e1aad5304
--- /dev/null
+++ b/LayoutTests/fullscreen/model/remove-first.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<title>Remove the first 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="first">
+ <div id="last"></div>
+</div>
+<script>
+async_test(function(t)
+{
+ var first = document.getElementById("first");
+ trusted_request(first);
+ document.onfullscreenchange = t.step_func(function()
+ {
+ assert_equals(document.fullscreenElement, first);
+ var last = document.getElementById("last");
+ trusted_request(last);
+ document.onfullscreenchange = t.step_func(function()
+ {
+ assert_equals(document.fullscreenElement, last);
+ first.remove();
+ document.onfullscreenchange = t.step_func(function()
+ {
+ assert_equals(document.fullscreenElement, null);
+ t.done();
+ });
+ });
+ });
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/fullscreen/model/remove-last.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698