blob: c23572da092c6d7572377f5d8ff5afe903fc4843 [file] [log] [blame]
<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>