You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/05/07 22:52:06 UTC

[8/8] js commit: test label tweak and exec.reset call to make sure

test label tweak and exec.reset call to make sure


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/dd7ab282
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/dd7ab282
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/dd7ab282

Branch: refs/heads/master
Commit: dd7ab2827072a51427b18bc2f28de31dbfbd26a2
Parents: b4ec5f7
Author: Fil Maj <ma...@gmail.com>
Authored: Fri May 4 19:03:36 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Mon May 7 13:51:05 2012 -0700

----------------------------------------------------------------------
 test/test.geolocation.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/dd7ab282/test/test.geolocation.js
----------------------------------------------------------------------
diff --git a/test/test.geolocation.js b/test/test.geolocation.js
index 8ea5139..97f68a0 100644
--- a/test/test.geolocation.js
+++ b/test/test.geolocation.js
@@ -13,7 +13,7 @@ describe("geolocation", function () {
     });
 
     describe("getCurrentPosition", function() {
-        describe("arguments", function () {
+        describe("and passed-in arguments", function () {
             it("uses default PositionOptions if none are specified", function () {
                 geo.getCurrentPosition(s, e);
                 expect(exec).toHaveBeenCalledWith(jasmine.any(Function), jasmine.any(Function), "Geolocation", "getLocation", [false, 0]);
@@ -244,6 +244,7 @@ describe("geolocation", function () {
     describe("clearWatch", function () {
         it("should tell native to remove an id from the watch list if it exists", function() {
             var id = geo.watchPosition(s, e);
+            exec.reset();
             geo.clearWatch(id);
             expect(exec).toHaveBeenCalledWith(null, null, "Geolocation", "clearWatch", [id]);
         });