| 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 src="script-tests/enabled.js"></script> | 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> |
| 8 </body> | 25 </body> |
| 9 </html> | 26 </html> |
| OLD | NEW |