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

Side by Side Diff: LayoutTests/fullscreen/full-screen-iframe-allowed-prefixed.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 for <a href="http://bugs.webkit.org/show_bug.cgi?id=56264">bug 56264</a> : 1 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=56264">bug 56264</a> :
2 Handle entering full screen security restrictions</p> 2 Handle entering full screen security restrictions</p>
3 <p>To test manually, click the "Go full screen" button - the page should enter f ull screen mode.</p> 3 <p>To test manually, click the "Go full screen" button - the page should enter f ull screen mode.</p>
4 <script src="full-screen-test.js"></script> 4 <script src="full-screen-test.js"></script>
5 <script> 5 <script>
6 function runTest() { 6 function runTest() {
7 var frame = document.getElementById('frame'); 7 var frame = document.getElementById('frame');
8 8
9 waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() { 9 waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() {
10 test("document.getElementById('frame').contentDocument.width==docume nt.width") 10 test("document.getElementById('frame').contentDocument.width==docume nt.width")
11 endTest(); 11 endTest();
12 }); 12 });
13 13
14 runWithKeyDown(function() { 14 runWithKeyDown(function() {
15
16 setTimeout(function() {
17 consoleWrite("FAIL - did not enter full screen!");
18 endTest();
19 }, 50);
20
21 frame.contentDocument.documentElement.webkitRequestFullScreen(); 15 frame.contentDocument.documentElement.webkitRequestFullScreen();
22 }); 16 });
23 } 17 }
24 </script> 18 </script>
25 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="r unTest()" webkitallowfullscreen> 19 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="r unTest()" webkitallowfullscreen>
26 </iframe> 20 </iframe>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-iframe-allowed.html ('k') | LayoutTests/fullscreen/full-screen-iframe-legacy.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698