[email protected] | f60982f | 2009-08-13 00:23:44 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 | <html> | ||||
3 | <head> | ||||
tkent | c5e88f0 | 2017-02-06 22:47:31 | [diff] [blame] | 4 | <script src="../resources/js-test.js"></script> |
[email protected] | f60982f | 2009-08-13 00:23:44 | [diff] [blame] | 5 | </head> |
6 | <body> | ||||
tkent | 98122ee | 2017-02-02 07:38:51 | [diff] [blame] | 7 | <script> |
8 | description("Tests that the navigator.geolocation object is present."); | ||||
9 | |||||
10 | function hasGeolocationProperty() | ||||
11 | { | ||||
12 | for (var property in navigator) { | ||||
13 | if (property == "geolocation") | ||||
14 | return true; | ||||
15 | } | ||||
16 | return false; | ||||
17 | } | ||||
18 | |||||
19 | shouldBeTrue("typeof navigator.geolocation == 'object'"); | ||||
20 | shouldBeTrue("hasGeolocationProperty()"); | ||||
21 | shouldBeTrue("'geolocation' in navigator"); | ||||
22 | |||||
23 | window.jsTestIsAsync = false; | ||||
24 | </script> | ||||
[email protected] | f60982f | 2009-08-13 00:23:44 | [diff] [blame] | 25 | </body> |
26 | </html> |