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

Side by Side Diff: LayoutTests/fullscreen/exit-full-screen-iframe.html

Issue 336313015: Remove the webkitallowfullscreen content attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix quirks mode test Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fullscreen/full-screen-enabled-prefixed.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html>
1 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=90327">bug 90327</a> : 2 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=90327">bug 90327</a> :
2 webkitCancelFullScreen for iframes</p> 3 webkitCancelFullScreen for iframes</p>
3 <p>To test manually, click the "Go full screen" button - the page should enter f ull screen mode and immediately exit again, without crashing.</p> 4 <p>To test manually, click the "Go full screen" button - the page should enter f ull screen mode and immediately exit again, without crashing.</p>
4 <script src="full-screen-test.js"></script> 5 <script src="full-screen-test.js"></script>
5 <script> 6 <script>
6 function runTest() { 7 function runTest() {
7 var frame = document.getElementById('frame'); 8 var frame = document.getElementById('frame');
8 9
9 waitForEventOnce(frame.contentDocument, 'webkitfullscreenchange', function() { 10 waitForEventOnce(frame.contentDocument, 'webkitfullscreenchange', function() {
10 test("document.getElementById('frame').contentDocument.webkitIsFullScree n==true") 11 test("document.getElementById('frame').contentDocument.webkitIsFullScree n==true")
11 waitForEventOnce(frame.contentDocument, 'webkitfullscreenchange', functi on() { 12 waitForEventOnce(frame.contentDocument, 'webkitfullscreenchange', functi on() {
12 test("document.getElementById('frame').contentDocument.webkitIsFullS creen==false") 13 test("document.getElementById('frame').contentDocument.webkitIsFullS creen==false")
13 endTest(); 14 endTest();
14 }); 15 });
15 16
16 document.webkitCancelFullScreen(); 17 document.webkitCancelFullScreen();
17 }); 18 });
18 19
19 runWithKeyDown(function() { 20 runWithKeyDown(function() {
20 frame.contentDocument.documentElement.webkitRequestFullScreen(); 21 frame.contentDocument.documentElement.webkitRequestFullScreen();
21 }); 22 });
22 } 23 }
23 </script> 24 </script>
24 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="r unTest()" webkitallowfullscreen> 25 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="r unTest()" allowfullscreen>
25 </iframe> 26 </iframe>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fullscreen/full-screen-enabled-prefixed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698