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

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

Issue 2557943002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: rebase Created 4 years 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 // Adapted from https://github.com/w3c/web-platform-tests/pull/4250 9 // Adapted from https://github.com/w3c/web-platform-tests/pull/4250
10 // TODO(foolip): Remove this test when the above is imported and passing. 10 // TODO(foolip): Remove this test when the above is imported and passing.
11 async_test(t => { 11 async_test(t => {
12 const target = document.getElementById("target"); 12 const target = document.getElementById("target");
13 13
14 document.onfullscreenchange = t.step_func_done(() => { 14 document.onfullscreenchange = t.unreached_func("fullscreenchange event");
15 document.onfullscreenerror = t.step_func_done(() => {
15 assert_equals(document.fullscreenElement, null); 16 assert_equals(document.fullscreenElement, null);
16 }); 17 });
17 document.onfullscreenerror = t.unreached_func("fullscreenchange event");
18 18
19 trusted_click(t.step_func(() => { 19 trusted_click(t.step_func(() => {
20 target.requestFullscreen(); 20 target.requestFullscreen();
21 target.remove(); 21 target.remove();
22 }), document.body); 22 }), document.body);
23 }); 23 });
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698