1 // Copyright 2015 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 // This API call should always return permission denied because geolocation
6 // implementation is not complete in app_shell.
8 function checkErrorCode(error
) {
9 if (error
.code
== error
.PERMISSION_DENIED
)
10 chrome
.test
.succeed();
15 chrome
.test
.runTests([
16 function geolocation_getCurrentPosition() {
17 navigator
.geolocation
.getCurrentPosition(chrome
.test
.fail
,