blob: 6cb7badf4245ed63a2757f22fb5936102339be53 [file] [log] [blame]
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;