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

Side by Side Diff: LayoutTests/fullscreen/full-screen-line-boxes-crash.html

Issue 462253003: Remove early returns in fullscreen tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body style="-webkit-columns: 30;"> 3 <body style="-webkit-columns: 30;">
4 PASS. 4 PASS.
5 <bdi> 5 <bdi>
6 <span style="margin-top: 1em;">WebKit didn't crash. 6 <span style="margin-top: 1em;">WebKit didn't crash.
7 <script src="full-screen-test.js"></script> 7 <script src="full-screen-test.js"></script>
8 <script> 8 <script>
9 if (Element.prototype.webkitRequestFullScreen == undefined) { 9 var fullscreenChanged = function(event)
10 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined "); 10 {
11 endTest(); 11 callback(event)
12 } else { 12 };
13 var fullscreenChanged = function(event) 13 waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged);
14 { 14 var span = document.getElementsByTagName('span')[0];
15 callback(event) 15 var spanEnteredFullScreen = function() {
16 }; 16 runWithKeyDown(function() { document.documentElement.webkitRequestFullSc reen(); });
17 waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged); 17 setTimeout("endTest()", 0);
18 var span = document.getElementsByTagName('span')[0]; 18 };
19 var spanEnteredFullScreen = function() {
20 runWithKeyDown(function() { document.documentElement.webkitRequestFu llScreen(); });
21 setTimeout("endTest()", 0);
22 };
23 19
24 callback = spanEnteredFullScreen; 20 callback = spanEnteredFullScreen;
25 runWithKeyDown(function() { span.webkitRequestFullScreen(); }); 21 runWithKeyDown(function() { span.webkitRequestFullScreen(); });
26 }
27 </script> 22 </script>
28 </body> 23 </body>
29 </html> 24 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-keyboard-enabled.html ('k') | LayoutTests/fullscreen/full-screen-no-style-sharing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698