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

Side by Side Diff: LayoutTests/fullscreen/full-screen-element-stack.html

Issue 9950115: Revert 111028 - Support W3C Full Screen API proposal (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-element-stack-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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="full-screen-test.js"></script>
5 <script>
6 var one;
7 var two;
8
9 function runTest() {
10 one = document.getElementById('one');
11 two = document.getElementById('two');
12
13 var callback;
14 var fullscreenChanged = function(event) {
15 if (callback)
16 callback(event)
17 };
18 waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
19
20 var oneEnteredFullscreen = function() {
21 testExpected("document.webkitFullscreenElement.id", "one");
22 callback = twoEnteredFullscreen;
23 if (window.layoutTestController)
24 runWithKeyDown(function() { two.webkitRequestFullscreen(); });
25 };
26
27 var twoEnteredFullscreen = function() {
28 testExpected("document.webkitFullscreenElement.id", "two");
29 callback = twoExitedFullscreen;
30 if (window.layoutTestController)
31 document.webkitExitFullscreen();
32 };
33
34 var twoExitedFullscreen = function() {
35 testExpected("document.webkitFullscreenElement.id", "one");
36 endTest();
37 };
38
39 callback = oneEnteredFullscreen;
40 if (window.layoutTestController)
41 runWithKeyDown(function() { one.webkitRequestFullscreen(); });
42 }
43 </script>
44 </head>
45 <body onload="runTest()">
46 <p>Test for <a href="http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview. html#fullscreen-element-stack">W3C Fullscreen element stack</a>.</p>
47 <p>To test manually, click the "Go full screen" button - the page should ent er full screen mode.</p>
48 <div>
49 <button onclick="one.webkitRequestFullscreen()">Go full screen (one)</bu tton>
50 </div>
51 <div id=one>
52 <button onclick="two.webkitRequestFullscreen()">Go full screen (two)</bu tton>
53 <div id=two>
54 <button onclick="document.webkitExitFullscreen()">Exit full screen ( two)</button>
55 </div>
56 </div>
57 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-element-stack-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698