| Index: chrome/test/data/extensions/api_test/fullscreen/no_permission/window.js
|
| diff --git a/chrome/test/data/extensions/api_test/fullscreen/no_permission/window.js b/chrome/test/data/extensions/api_test/fullscreen/no_permission/window.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..83fa86db17dc11784c7dc2cac6aa602551fc3bbd
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/fullscreen/no_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.fail;
|
| + document.onwebkitfullscreenerror = chrome.test.succeed;
|
| + document.body.webkitRequestFullscreen();
|
| + };
|
| + document.body.onclick = requestFullscreen; // enables manual testing.
|
| + chrome.test.runTests([requestFullscreen]);
|
| +}
|
|
|