Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76A41C8F4 for ; Tue, 8 May 2012 00:37:55 +0000 (UTC) Received: (qmail 321 invoked by uid 500); 8 May 2012 00:37:55 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 296 invoked by uid 500); 8 May 2012 00:37:55 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 289 invoked by uid 99); 8 May 2012 00:37:55 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 00:37:55 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 0C41614B2E; Tue, 8 May 2012 00:37:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: filmaj@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: spec commit: reference fixes for geo tests Message-Id: <20120508003755.0C41614B2E@tyr.zones.apache.org> Date: Tue, 8 May 2012 00:37:55 +0000 (UTC) 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 Authored: Mon May 7 17:40:58 2012 -0700 Committer: Fil Maj 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();