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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-element-stack-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/full-screen-element-stack.html
===================================================================
--- LayoutTests/fullscreen/full-screen-element-stack.html (revision 113078)
+++ LayoutTests/fullscreen/full-screen-element-stack.html (working copy)
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="full-screen-test.js"></script>
- <script>
- var one;
- var two;
-
- function runTest() {
- one = document.getElementById('one');
- two = document.getElementById('two');
-
- var callback;
- var fullscreenChanged = function(event) {
- if (callback)
- callback(event)
- };
- waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
-
- var oneEnteredFullscreen = function() {
- testExpected("document.webkitFullscreenElement.id", "one");
- callback = twoEnteredFullscreen;
- if (window.layoutTestController)
- runWithKeyDown(function() { two.webkitRequestFullscreen(); });
- };
-
- var twoEnteredFullscreen = function() {
- testExpected("document.webkitFullscreenElement.id", "two");
- callback = twoExitedFullscreen;
- if (window.layoutTestController)
- document.webkitExitFullscreen();
- };
-
- var twoExitedFullscreen = function() {
- testExpected("document.webkitFullscreenElement.id", "one");
- endTest();
- };
-
- callback = oneEnteredFullscreen;
- if (window.layoutTestController)
- runWithKeyDown(function() { one.webkitRequestFullscreen(); });
- }
- </script>
-</head>
-<body onload="runTest()">
- <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>
- <p>To test manually, click the "Go full screen" button - the page should enter full screen mode.</p>
- <div>
- <button onclick="one.webkitRequestFullscreen()">Go full screen (one)</button>
- </div>
- <div id=one>
- <button onclick="two.webkitRequestFullscreen()">Go full screen (two)</button>
- <div id=two>
- <button onclick="document.webkitExitFullscreen()">Exit full screen (two)</button>
- </div>
- </div>
-</body>
« 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