Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C555FF828 for ; Tue, 23 Apr 2013 19:30:21 +0000 (UTC) Received: (qmail 66615 invoked by uid 500); 23 Apr 2013 19:30:21 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 66601 invoked by uid 500); 23 Apr 2013 19:30:21 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 66594 invoked by uid 99); 23 Apr 2013 19:30:21 -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, 23 Apr 2013 19:30:21 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 56B52823080; Tue, 23 Apr 2013 19:30:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: maxw@apache.org To: commits@cordova.apache.org Message-Id: <7ec153a662914d70b9343971bbbccf8b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: spec commit: [CB-3220] Fixed CompassHeading test for no params. Date: Tue, 23 Apr 2013 19:30:21 +0000 (UTC) Updated Branches: refs/heads/master 19f464086 -> d4eda5789 [CB-3220] Fixed CompassHeading test for no params. Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/d4eda578 Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d4eda578 Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d4eda578 Branch: refs/heads/master Commit: d4eda57899b0f08d611557c7c6b0a2120c060d81 Parents: 19f4640 Author: Max Woghiren Authored: Tue Apr 23 15:26:33 2013 -0400 Committer: Max Woghiren Committed: Tue Apr 23 15:26:33 2013 -0400 ---------------------------------------------------------------------- autotest/tests/compass.tests.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d4eda578/autotest/tests/compass.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/compass.tests.js b/autotest/tests/compass.tests.js index edaced2..3b32bcd 100644 --- a/autotest/tests/compass.tests.js +++ b/autotest/tests/compass.tests.js @@ -79,9 +79,10 @@ describe('Compass (navigator.compass)', function () { it("compass.spec.8 should be able to create a new CompassHeading instance with no parameters", function() { var h = new CompassHeading(); - expect(h.magneticHeading).toBeDefined(); - expect(h.trueHeading).toBeDefined(); - expect(h.headingAccuracy).toBeDefined(); + expect(h).toBeDefined(); + expect(h.magneticHeading).toBeUndefined(); + expect(h.trueHeading).toBeUndefined(); + expect(h.headingAccuracy).toBeUndefined(); expect(typeof h.timestamp == 'number').toBe(true); });