diff options
Diffstat (limited to 'LayoutTests/fast/dom/Geolocation/resources/error.js')
-rw-r--r-- | LayoutTests/fast/dom/Geolocation/resources/error.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/LayoutTests/fast/dom/Geolocation/resources/error.js b/LayoutTests/fast/dom/Geolocation/resources/error.js deleted file mode 100644 index c76570b..0000000 --- a/LayoutTests/fast/dom/Geolocation/resources/error.js +++ /dev/null @@ -1,27 +0,0 @@ -description("Tests Geolocation error callback using the mock service."); - -var mockCode = 0; -var mockMessage = "debug"; - -window.layoutTestController.setMockGeolocationError(mockCode, mockMessage); - -var error; -navigator.geolocation.getCurrentPosition(function(p) { - testFailed('Success callback invoked unexpectedly'); - debug('<br /><span class="pass">TEST COMPLETE</span>'); - window.layoutTestController.notifyDone(); -}, function(e) { - error = e - shouldBe('error.code', 'mockCode'); - shouldBe('error.message', 'mockMessage'); - shouldBe('error.UNKNOWN_ERROR', 'undefined'); - shouldBe('error.PERMISSION_DENIED', '1'); - shouldBe('error.POSITION_UNAVAILABLE', '2'); - shouldBe('error.TIMEOUT', '3'); - debug('<br /><span class="pass">TEST COMPLETE</span>'); - window.layoutTestController.notifyDone(); -}); -window.layoutTestController.waitUntilDone(); - -var isAsynchronous = true; -var successfullyParsed = true; |