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

Side by Side Diff: LayoutTests/fullscreen/model/remove-child.html

Issue 479113003: Add tests for removing the parent/child of the fullscreen element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Remove the child of the fullscreen element</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../trusted-event.js"></script>
6 <div id="log"></div>
7 <div id="parent">
8 <div></div>
9 </div>
10 <script>
11 async_test(function(t)
12 {
13 var parent = document.getElementById("parent");
14 trusted_request(parent);
15 document.onfullscreenchange = t.step_func(function()
16 {
17 assert_equals(document.fullscreenElement, parent);
18 while (parent.firstChild) {
19 parent.firstChild.remove();
20 }
21 document.onfullscreenchange = t.unreached_func("fullscreenchange event") ;
22 // A fullscreenchange event would be fired after an async section
23 // and an animation frame task, so wait until after that.
24 setTimeout(requestAnimationFrame.bind(null, t.step_func_done()), 0);
25 });
26 });
27 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/api/element-request-fullscreen-top.html ('k') | LayoutTests/fullscreen/model/remove-parent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698