From c420addea6deda3ce097d2767dfcd7aaae5eb18b Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Mon, 7 May 2012 17:40:58 -0700 Subject: [PATCH] reference fixes for geo tests --- autotest/tests/geolocation.tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();