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

Side by Side Diff: LayoutTests/fullscreen/full-screen-iframe-without-allow-attribute-allowed-from-parent.html

Issue 27021003: Removed fullscreen test timeouts to prevent flakiness. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 <p>Test entering full screen security restrictions. An iframe without an allow a ttribute 1 <p>Test entering full screen security restrictions. An iframe without an allow a ttribute
2 is still permitted to fullscreen if the request comes from the containing docume nt.</p> 2 is still permitted to fullscreen if the request comes from the containing docume nt.</p>
3 <p>To test manually, press any key - the page should enter full screen mode.</p> 3 <p>To test manually, press any key - the page should enter full screen mode.</p>
4 <script src="full-screen-test.js"></script> 4 <script src="full-screen-test.js"></script>
5 <script> 5 <script>
6 window.onmessage = function (e) { 6 window.onmessage = function (e) {
7 frame = document.getElementById('frame'); 7 frame = document.getElementById('frame');
8 8
9 test("document.webkitFullscreenEnabled"); 9 test("document.webkitFullscreenEnabled");
10 consoleWrite("iframe's webkitFullscreenEnabled should be false:"); 10 consoleWrite("iframe's webkitFullscreenEnabled should be false:");
11 iframeMessage = e.data; 11 iframeMessage = e.data;
12 test("iframeMessage == 'document.webkitFullscreenEnabled == false'"); 12 test("iframeMessage == 'document.webkitFullscreenEnabled == false'");
13 13
14 waitForEvent(document, 'webkitfullscreenchange', function() { 14 waitForEvent(document, 'webkitfullscreenchange', function() {
15 consoleWrite("SUCCEED - entered full screen!"); 15 consoleWrite("SUCCEED - entered full screen!");
16 endTest(); 16 endTest();
17 }); 17 });
18 18
19 runWithKeyDown(function() { 19 runWithKeyDown(function() {
20 setTimeout(function() {
21 consoleWrite("FAIL - did not enter full screen!");
22 endTest();
23 }, 50);
24 frame.webkitRequestFullScreen(); 20 frame.webkitRequestFullScreen();
25 }); 21 });
26 } 22 }
27 </script> 23 </script>
28 <iframe id="frame" src='data:text/html, 24 <iframe id="frame" src='data:text/html,
29 iframe 25 iframe
30 <script> 26 <script>
31 parent.postMessage("document.webkitFullscreenEnabled == " + document.web kitFullscreenEnabled, "*"); 27 parent.postMessage("document.webkitFullscreenEnabled == " + document.web kitFullscreenEnabled, "*");
32 </script> 28 </script>
33 '> 29 '>
34 </iframe> 30 </iframe>
35 31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698