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>
11 async_test(function(t
)
13 var parent
= document
.getElementById("parent");
14 trusted_request(parent
);
15 document
.onfullscreenchange
= t
.step_func(function()
17 assert_equals(document
.fullscreenElement
, parent
);
18 while (parent
.firstChild
) {
19 parent
.firstChild
.remove();
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);