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

Unified Diff: chrome/test/data/extensions/api_test/fullscreen/has_permission/window.js

Issue 12205002: Packaged apps manifest requires 'fullscreen' permission for HTML5 api. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed template params from permission_warnings.html Created 7 years, 10 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
Index: chrome/test/data/extensions/api_test/fullscreen/has_permission/window.js
diff --git a/chrome/test/data/extensions/api_test/fullscreen/has_permission/window.js b/chrome/test/data/extensions/api_test/fullscreen/has_permission/window.js
new file mode 100644
index 0000000000000000000000000000000000000000..fc0876d3646119d97a650b77753fbb783a468da8
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/fullscreen/has_permission/window.js
@@ -0,0 +1,13 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+window.onload = function () {
+ function requestFullscreen() {
+ document.onwebkitfullscreenchange = chrome.test.succeed;
+ document.onwebkitfullscreenerror = chrome.test.fail;
+ document.body.webkitRequestFullscreen();
+ };
+ document.body.onclick = requestFullscreen; // enables manual testing.
+ chrome.test.runTests([requestFullscreen]);
+}

Powered by Google App Engine
This is Rietveld 408576698