blob: a8ca0caa344ab1c3acbfe9e3b5ffa62e6971002e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
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");
shouldBeFalse("navigator.hasOwnProperty('geolocation')");
shouldBeTrue("navigator.__proto__.hasOwnProperty('geolocation')");
window.jsTestIsAsync = false;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>