blob: 13810801ffeac4e59b021d6e791460245f421b51 [file] [log] [blame]
[email protected]f60982f2009-08-13 00:23:441<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
tkentc5e88f02017-02-06 22:47:314<script src="../resources/js-test.js"></script>
[email protected]f60982f2009-08-13 00:23:445</head>
6<body>
tkent98122ee2017-02-02 07:38:517<script>
8description("Tests that the navigator.geolocation object is present.");
9
10function hasGeolocationProperty()
11{
12 for (var property in navigator) {
13 if (property == "geolocation")
14 return true;
15 }
16 return false;
17}
18
19shouldBeTrue("typeof navigator.geolocation == 'object'");
20shouldBeTrue("hasGeolocationProperty()");
21shouldBeTrue("'geolocation' in navigator");
22
23window.jsTestIsAsync = false;
24</script>
[email protected]f60982f2009-08-13 00:23:4425</body>
26</html>