Updated Branches: refs/heads/master 3b0be3ddd -> c420addea
reference fixes for geo tests Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/c420adde Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/c420adde Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/c420adde Branch: refs/heads/master Commit: c420addea6deda3ce097d2767dfcd7aaae5eb18b Parents: 3b0be3d Author: Fil Maj <maj....@gmail.com> Authored: Mon May 7 17:40:58 2012 -0700 Committer: Fil Maj <maj....@gmail.com> Committed: Mon May 7 17:40:58 2012 -0700 ---------------------------------------------------------------------- autotest/tests/geolocation.tests.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/c420adde/autotest/tests/geolocation.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/geolocation.tests.js b/autotest/tests/geolocation.tests.js index 718d582..9d81425 100644 --- a/autotest/tests/geolocation.tests.js +++ b/autotest/tests/geolocation.tests.js @@ -19,9 +19,9 @@ describe('Geolocation (navigator.geolocation)', function () { }); it("getCurrentPosition success callback should be called with a Position object", function() { - var win = jasmine.createSpy().andCallFake(function(a) { - expect(p.coords).not.toBe(null); - expect(p.timestamp).not.toBe(null); + var win = jasmine.createSpy().andCallFake(function(p) { + expect(p.coords).toBeDefined(); + expect(p.timestamp).toBeDefined(); }), fail = jasmine.createSpy(); @@ -39,7 +39,7 @@ describe('Geolocation (navigator.geolocation)', function () { }); it("getCurrentPosition success callback should be called with a cached Position", function() { - var win = jasmine.createSpy().andCallFake(function(a) { + var win = jasmine.createSpy().andCallFake(function(p) { expect(p.coords instanceof Position).toBe(true); }), fail = jasmine.createSpy();