summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/Geolocation/resources/enabled.js
blob: 4e999848378a5eb55ff7d5d7333a49c6fa7cd00a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
description("Tests that the navigator.geolocation object is present.");

function hasGeolocationProperty()
{
    for (var property in navigator) {
        if (property == "geolocation")
            return true;
    }
    return false;
}

shouldBeTrue("typeof navigator.geolocation == 'object'");
shouldBeTrue("hasGeolocationProperty()");
shouldBeTrue("'geolocation' in navigator");
shouldBeTrue("navigator.hasOwnProperty('geolocation')");

var isAsynchronous = false;
var successfullyParsed = true;