| Index: chrome/test/data/extensions/api_test/pointer_lock/has_permission/window.js
|
| diff --git a/chrome/test/data/extensions/api_test/pointer_lock/has_permission/window.js b/chrome/test/data/extensions/api_test/pointer_lock/has_permission/window.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..433994d3ff93a2c79347e5bd66b412a5cbcf9f4f
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/pointer_lock/has_permission/window.js
|
| @@ -0,0 +1,13 @@
|
| +// Copyright (c) 2012 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 () {
|
| + chrome.test.runTests([
|
| + function requestPointerLock() {
|
| + document.onwebkitpointerlockchange = chrome.test.succeed;
|
| + document.onwebkitpointerlockerror = chrome.test.fail;
|
| + document.body.webkitRequestPointerLock();
|
| + },
|
| + ]);
|
| +}
|
|
|