summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/Geolocation/resources/timeout-zero.js
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/dom/Geolocation/resources/timeout-zero.js')
-rw-r--r--LayoutTests/fast/dom/Geolocation/resources/timeout-zero.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/LayoutTests/fast/dom/Geolocation/resources/timeout-zero.js b/LayoutTests/fast/dom/Geolocation/resources/timeout-zero.js
deleted file mode 100644
index 8a930d9..0000000
--- a/LayoutTests/fast/dom/Geolocation/resources/timeout-zero.js
+++ /dev/null
@@ -1,21 +0,0 @@
-description("Tests that when timeout is zero (and maximumAge is too), the error callback is called immediately with code TIMEOUT.");
-
-layoutTestController.setMockGeolocationPosition(51.478, -0.166, 100.0);
-
-var error;
-navigator.geolocation.getCurrentPosition(function(p) {
- testFailed('Success callback invoked unexpectedly');
- window.layoutTestController.notifyDone();
-}, function(e) {
- error = e
- shouldBe('error.code', 'error.TIMEOUT');
- shouldBe('error.message', '"Timeout expired"');
- debug('<br /><span class="pass">TEST COMPLETE</span>');
- window.layoutTestController.notifyDone();
-}, {
- timeout: 0
-});
-window.layoutTestController.waitUntilDone();
-
-var isAsynchronous = true;
-var successfullyParsed = true;