blob: 0660fdf05d2fba6b07731c4b600b7cb981439344 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("This tests removing the watcher from an error callback does not causes assertions.");
var mockMessage = "debug";
if (window.testRunner) {
testRunner.setGeolocationPermission(true);
testRunner.setMockGeolocationPositionUnavailableError(mockMessage);
} else
debug('This test can not be run without the LayoutTestController');
var watchId = navigator.geolocation.watchPosition(function() {
navigator.geolocation.clearWatch(watchId);
finishJSTest();
}, function(e) {
navigator.geolocation.clearWatch(watchId);
finishJSTest();
});
window.jsTestIsAsync = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>