blob: ecd98241898ffa54e77b961553bdd30dd4ac8650 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/testharness-adapter.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");
finishJSTest();
</script>
</body>
</html>