1 description("Tests that when timeout is zero (and maximumAge is too), the error callback is called immediately with code TIMEOUT.");
3 if (window.layoutTestController)
4 layoutTestController.setMockGeolocationPosition(51.478, -0.166, 100.0);
7 navigator.geolocation.getCurrentPosition(function(p) {
8 testFailed('Success callback invoked unexpectedly');
12 shouldBe('error.code', 'error.TIMEOUT');
13 shouldBe('error.message', '"Timeout expired"');
19 window.jsTestIsAsync = true;