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]); |
+} |