| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description("Tests that the navigator.geolocation object is present."); | 8 description("Tests that the navigator.geolocation object is present."); |
| 9 | 9 |
| 10 function hasGeolocationProperty() | 10 function hasGeolocationProperty() |
| 11 { | 11 { |
| 12 for (var property in navigator) { | 12 for (var property in navigator) { |
| 13 if (property == "geolocation") | 13 if (property == "geolocation") |
| 14 return true; | 14 return true; |
| 15 } | 15 } |
| 16 return false; | 16 return false; |
| 17 } | 17 } |
| 18 | 18 |
| 19 shouldBeTrue("typeof navigator.geolocation == 'object'"); | 19 shouldBeTrue("typeof navigator.geolocation == 'object'"); |
| 20 shouldBeTrue("hasGeolocationProperty()"); | 20 shouldBeTrue("hasGeolocationProperty()"); |
| 21 shouldBeTrue("'geolocation' in navigator"); | 21 shouldBeTrue("'geolocation' in navigator"); |
| 22 | 22 |
| 23 window.jsTestIsAsync = false; | 23 window.jsTestIsAsync = false; |
| 24 </script> | 24 </script> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| OLD | NEW |