blob: e3294cedd5e8bc97e0f2abdf0df744ecbb2a1b1b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/testharness-adapter.js"></script>
</head>
<body>
<script type="module">
import {GeolocationMock} from './resources/geolocation-mock.js';
description("This tests removing the watcher from an error callback does not causes assertions.");
const mock = new GeolocationMock();
mock.setGeolocationPermission(true);
mock.setGeolocationPositionUnavailableError("debug");
const watchId = navigator.geolocation.watchPosition(function() {
navigator.geolocation.clearWatch(watchId);
finishJSTest();
}, function(e) {
navigator.geolocation.clearWatch(watchId);
finishJSTest();
});
</script>
</body>
</html>