summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/Geolocation/script-tests/enabled.js
blob: 6cb7badf4245ed63a2757f22fb5936102339be53 (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')");

window.jsTestIsAsync = false;
window.successfullyParsed = true;