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

Side by Side Diff: LayoutTests/fullscreen/full-screen-cancel-nested.html

Issue 434903002: Make webkitCancelFullScreen() an alias of webkitExitFullscreen() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test 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
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-cancel-nested-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <body>
falken 2014/08/06 04:18:30 nit: add <!DOCTYPE html>
2 <script src="full-screen-test.js"></script>
falken 2014/08/06 04:18:30 nit: please add a brief description of what the te
3 <span></span>
4 <script>
5 // Bail out early if the full screen API is not enabled or is missing:
6 if (Element.prototype.webkitRequestFullScreen == undefined) {
7 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined ");
8 endTest();
9 } else {
10 var callback;
11 function fullscreenChanged(event)
12 {
13 if (callback)
14 callback(event)
15 };
16 waitForEvent(document, "webkitfullscreenchange", fullscreenChanged);
17
18 var body = document.body;
19 function bodyEnteredFullScreen()
20 {
21 testExpected("document.webkitCurrentFullScreenElement", body);
22 callback = spanEnteredFullScreen;
23 runWithKeyDown(function() { span.webkitRequestFullScreen(); });
24 };
25
26 var span = document.querySelector("span");
27 function spanEnteredFullScreen()
28 {
29 testExpected("document.webkitCurrentFullScreenElement", span);
30 callback = cancelledFullScreen;
31 document.webkitCancelFullScreen();
32 };
33
34 function cancelledFullScreen()
35 {
36 testExpected("document.webkitCurrentFullScreenElement", body);
37 endTest();
38 };
39
40 callback = bodyEnteredFullScreen;
41 runWithKeyDown(function() { body.webkitRequestFullScreen(); });
42 }
43 </script>
falken 2014/08/06 04:18:30 nit: add </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-cancel-nested-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698