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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-remove-manual.html

Issue 2610243002: Import wpt@5e1a3b80cea8d36774d2afd78b29a74792e9f15a (Closed)
Patch Set: Rebased Created 3 years, 11 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Element#requestFullscreen() followed by removing the element</title> 2 <title>Element#requestFullscreen() followed by removing the element</title>
3 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <script src="../trusted-click.js"></script> 5 <script src="../trusted-click.js"></script>
6 <div id="log"></div> 6 <div id="log"></div>
7 <div id="target"></div> 7 <div id="target"></div>
8 <script> 8 <script>
9 async_test(t => { 9 async_test(t => {
10 const target = document.getElementById("target"); 10 const target = document.getElementById("target");
11 11
12 document.onfullscreenchange = t.unreached_func("fullscreenchange event"); 12 document.onfullscreenchange = t.unreached_func("fullscreenchange event");
13 document.onfullscreenerror = t.step_func_done(() => { 13 document.onfullscreenerror = t.step_func_done(() => {
14 assert_equals(document.fullscreenElement, null); 14 assert_equals(document.fullscreenElement, null);
15 }); 15 });
16 16
17 trusted_click(t.step_func(() => { 17 trusted_click(t, () => {
18 target.requestFullscreen(); 18 target.requestFullscreen();
19 target.remove(); 19 target.remove();
20 }), document.body); 20 }, document.body);
21 }); 21 });
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698