Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Geolocation / script-tests / enabled.js
blob6e3ec6c14603ccd2b0ef07596f973c5a824da764
1 description("Tests that the navigator.geolocation object is present.");
3 function hasGeolocationProperty()
5 for (var property in navigator) {
6 if (property == "geolocation")
7 return true;
9 return false;
12 shouldBeTrue("typeof navigator.geolocation == 'object'");
13 shouldBeTrue("hasGeolocationProperty()");
14 shouldBeTrue("'geolocation' in navigator");
16 window.jsTestIsAsync = false;