| <html> | |
| <body> | |
| <p>This test makes sure we are not getting a console message stating that geolocation is blocked when the url scheme is local (e.g. file://).</p> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| if (navigator.geolocation) | |
| navigator.geolocation.getCurrentPosition(showPosition); | |
| function showPosition(position) { | |
| console.log("Latitude: " + position.coords.latitude + "Longitude: " + position.coords.longitude); | |
| } | |
| </script> | |
| </body> | |
| </html> |