HomeSort by relevance Sort by last modified time
    Searched full:geolocation (Results 1 - 25 of 132) sorted by null

1 2 3 4 5 6

  /external/webkit/LayoutTests/fast/dom/Geolocation/resources/
enabled.js 1 description("Tests that the navigator.geolocation object is present.");
6 if (property == "geolocation")
12 shouldBeTrue("typeof navigator.geolocation == 'object'");
14 shouldBeTrue("'geolocation' in navigator");
15 shouldBeTrue("navigator.hasOwnProperty('geolocation')");
argument-types.js 1 description("Tests the acceptable types for arguments to Geolocation methods.");
36 test('navigator.geolocation.getCurrentPosition()', true);
38 test('navigator.geolocation.getCurrentPosition(undefined)', true);
39 test('navigator.geolocation.getCurrentPosition(null)', true);
40 test('navigator.geolocation.getCurrentPosition({})', true);
41 test('navigator.geolocation.getCurrentPosition(objectThrowingException)', true);
42 test('navigator.geolocation.getCurrentPosition(emptyFunction)', false);
43 test('navigator.geolocation.getCurrentPosition(Math.abs)', false);
44 test('navigator.geolocation.getCurrentPosition(true)', true);
45 test('navigator.geolocation.getCurrentPosition(42)', true)
    [all...]
permission-denied-already-error.js 1 description("Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service encounters an error.");
3 // Prime the Geolocation instance by denying permission.
8 navigator.geolocation.getCurrentPosition(function(p) {
14 shouldBe('error.message', '"User denied Geolocation"');
24 navigator.geolocation.getCurrentPosition(function(p) {
30 shouldBe('error.message', '"User denied Geolocation"');
permission-denied-already-success.js 1 description("Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service has a good position.");
3 // Prime the Geolocation instance by denying permission.
8 navigator.geolocation.getCurrentPosition(function(p) {
14 shouldBe('error.message', '"User denied Geolocation"');
22 navigator.geolocation.getCurrentPosition(function(p) {
28 shouldBe('error.message', '"User denied Geolocation"');
permission-denied-already-clear-watch.js 1 description("Tests that when Geolocation permission has been denied prior to a call to watchPosition, and the watch is cleared in the error callback, there is no crash. This a regression test for https://bugs.webkit.org/show_bug.cgi?id=32111.");
3 // Prime the Geolocation instance by denying permission.
8 navigator.geolocation.getCurrentPosition(function(p) {
14 shouldBe('error.message', '"User denied Geolocation"');
22 var watchId = navigator.geolocation.watchPosition(function(p) {
28 shouldBe('error.message', '"User denied Geolocation"');
29 navigator.geolocation.clearWatch(watchId);
permission-denied.js 1 description("Tests Geolocation when permission is denied, using the mock service.");
7 navigator.geolocation.getCurrentPosition(function(p) {
13 shouldBe('error.message', '"User denied Geolocation"');
permission-denied-stops-watches.js 1 description("Tests that when Geolocation permission is denied, watches are stopped, as well as one-shots.");
3 // Configure the mock Geolocation service to report a position to cause permission
10 navigator.geolocation.watchPosition(function(p) {
22 shouldBe('error.message', '"User denied Geolocation"');
24 // Update the mock Geolocation service to report a new position, then
reentrant-error.js 1 description("Tests that reentrant calls to Geolocation methods from the error callback are OK.");
10 navigator.geolocation.getCurrentPosition(function(p) {
33 navigator.geolocation.getCurrentPosition(function(p) {
success.js 1 description("Tests Geolocation success callback using the mock service.");
13 navigator.geolocation.getCurrentPosition(function(p) {
error.js 1 description("Tests Geolocation error callback using the mock service.");
9 navigator.geolocation.getCurrentPosition(function(p) {
timeout-clear-watch.js 6 var watchId = navigator.geolocation.watchPosition(function() {
13 navigator.geolocation.clearWatch(watchId);
maximum-age.js 32 navigator.geolocation.getCurrentPosition(function(p) {
44 navigator.geolocation.getCurrentPosition(function(p) {
57 navigator.geolocation.getCurrentPosition(function(p) {
68 navigator.geolocation.getCurrentPosition(function(p) {
  /external/webkit/LayoutTests/fast/dom/Geolocation/
enabled-expected.txt 1 Tests that the navigator.geolocation object is present.
6 PASS typeof navigator.geolocation == 'object' is true
8 PASS 'geolocation' in navigator is true
9 PASS navigator.hasOwnProperty('geolocation') is true
argument-types-expected.txt 1 Tests the acceptable types for arguments to Geolocation methods.
6 PASS navigator.geolocation.getCurrentPosition() threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
7 PASS navigator.geolocation.getCurrentPosition(undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
8 PASS navigator.geolocation.getCurrentPosition(null) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
9 PASS navigator.geolocation.getCurrentPosition({}) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
10 PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
11 PASS navigator.geolocation.getCurrentPosition(emptyFunction) did not throw exception.
12 PASS navigator.geolocation.getCurrentPosition(Math.abs) did not throw exception.
13 PASS navigator.geolocation.getCurrentPosition(true) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
14 PASS navigator.geolocation.getCurrentPosition(42) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17
    [all...]
permission-denied-already-error-expected.txt 1 Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service encounters an error.
8 PASS error.message is "User denied Geolocation"
11 PASS error.message is "User denied Geolocation"
permission-denied-already-success-expected.txt 1 Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service has a good position.
8 PASS error.message is "User denied Geolocation"
11 PASS error.message is "User denied Geolocation"
permission-denied-expected.txt 1 Tests Geolocation when permission is denied, using the mock service.
8 PASS error.message is "User denied Geolocation"
permission-denied-stops-watches-expected.txt 1 Tests that when Geolocation permission is denied, watches are stopped, as well as one-shots.
8 PASS error.message is "User denied Geolocation"
permission-denied-already-clear-watch-expected.txt 1 Tests that when Geolocation permission has been denied prior to a call to watchPosition, and the watch is cleared in the error callback, there is no crash. This a regression test for https://bugs.webkit.org/show_bug.cgi?id=32111.
8 PASS error.message is "User denied Geolocation"
11 PASS error.message is "User denied Geolocation"
reentrant-error-expected.txt 1 Tests that reentrant calls to Geolocation methods from the error callback are OK.
success-expected.txt 1 Tests Geolocation success callback using the mock service.
error-expected.txt 1 Tests Geolocation error callback using the mock service.
reentrant-success-expected.txt 1 Tests that reentrant calls to Geolocation methods from the success callback are OK.
  /external/webkit/WebCore/page/
Geolocation.cpp 29 #include "Geolocation.h"
56 static const char permissionDeniedErrorMessage[] = "User denied Geolocation";
57 static const char failedToStartServiceErrorMessage[] = "Failed to start Geolocation service";
88 Geolocation::GeoNotifier::GeoNotifier(Geolocation* geolocation, PassRefPtr<PositionCallback> successCallback, PassRefPtr<PositionErrorCallback> errorCallback, PassRefPtr<PositionOptions> options)
89 : m_geolocation(geolocation)
93 , m_timer(this, &Geolocation::GeoNotifier::timerFired)
103 void Geolocation::GeoNotifier::setFatalError(PassRefPtr<PositionError> error)
111 void Geolocation::GeoNotifier::setUseCachedPosition(
702 const Geolocation* geolocation = static_cast<const Geolocation*>(&listener); local
    [all...]
GeolocationController.h 31 #include "Geolocation.h"
48 void addObserver(Geolocation*);
49 void removeObserver(Geolocation*);
60 HashSet<RefPtr<Geolocation> > m_observers;

Completed in 900 milliseconds

1 2 3 4 5 6