blob: eabca2a844184cb7bb10c9b661ae2b0b86040c9f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="http://127.0.0.1:8000/security/resources/checkThatPositionErrorCallbackIsCalledWithPositionUnavailableForGeolocationMethod.js"></script>
<script>
var PositionUnavailableMockMessage = "Origin does not have permission to use Geolocation service";
if (window.testRunner) {
testRunner.setGeolocationPermission(true);
testRunner.setMockGeolocationPositionUnavailableError(PositionUnavailableMockMessage);
testRunner.setMockGeolocationPosition(37.3317115, -122.0323722, 100.0);
}
function done()
{
if (window.testRunner)
testRunner.notifyDone();
}
checkThatPositionErrorCallbackIsCalledWithPositionUnavailableForGeolocationMethod("getCurrentPosition", PositionUnavailableMockMessage, done);
</script>
</head>
<body>
<pre id="console"></pre>
</body>
</html>