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

Side by Side Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html

Issue 2573773002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: address feedback Created 3 years, 12 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 function runWithKeyDown(fn)
10 {
11 document.addEventListener('keydown', function() { fn(); }, false);
12 if (window.testRunner) {
13 eventSender.keyDown('a');
14 }
15 }
16
17 function init() {
18 runWithKeyDown(goFullScreen);
19 }
20
21 function goFullScreen() {
22 var iframe = document.getElementById('block1');
23 var element = iframe.contentDocument.documentElement;
24 setTimeout(function () {
25 iframe.parentNode.removeChild(iframe);
26 gc();
27 setTimeout(function () {
28 if (window.testRunner) {
29 testRunner.notifyDone();
30 }
31 }, 0);
32 }, 0);
33 element.webkitRequestFullScreen();
34 shouldNotBe("document.webkitFullscreenElement", "null");
35 }
36 </script>
37 <body onload="init()">
38 <iframe allowfullscreen src="resources/inner.html" id="block1"></iframe>
39 PASS
40 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698