Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / geolocation / no_permission / background.js
blob47e628156f10edc8eee121a06c80c8b04bfaab83
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // These API calls should fail since geolocation is not enabled for this
6 // extension.
7 chrome.test.runTests([
8 function geolocation_getCurrentPosition() {
9 try {
10 navigator.geolocation.getCurrentPosition(chrome.test.fail,
11 chrome.test.succeed);
12 } catch (e) {
13 chrome.test.fail();
16 function geolocation_watchPosition() {
17 try {
18 navigator.geolocation.watchPosition(chrome.test.fail,
19 chrome.test.succeed);
20 } catch (e) {
21 chrome.test.fail();
24 ]);