32 lines
829 B
HTML
32 lines
829 B
HTML
<!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>
|