| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../../resources/js-test-pre.js"></script> |
| description("Tests that the navigator.geolocation object is present."); |
| function hasGeolocationProperty() |
| for (var property in navigator) { |
| if (property == "geolocation") |
| shouldBeTrue("typeof navigator.geolocation == 'object'"); |
| shouldBeTrue("hasGeolocationProperty()"); |
| shouldBeTrue("'geolocation' in navigator"); |
| shouldBeFalse("navigator.hasOwnProperty('geolocation')"); |
| shouldBeTrue("navigator.__proto__.hasOwnProperty('geolocation')"); |
| window.jsTestIsAsync = false; |
| <script src="../../../resources/js-test-post.js"></script> |