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

Side by Side Diff: chrome/test/data/extensions/api_test/geolocation/no_permission/background.js

Issue 8758008: Move another block of extension tests to manifest_version 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
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();
14 }
15 },
16 function geolocation_watchPosition() {
17 try {
18 navigator.geolocation.watchPosition(chrome.test.fail,
19 chrome.test.succeed);
20 } catch (e) {
21 chrome.test.fail();
22 }
23 }
24 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698