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 0FE2F9D94 for ; Wed, 18 Apr 2012 21:49:54 +0000 (UTC) Received: (qmail 35217 invoked by uid 500); 18 Apr 2012 21:49:53 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 35139 invoked by uid 500); 18 Apr 2012 21:49:53 -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 34689 invoked by uid 99); 18 Apr 2012 21:49:52 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 21:49:52 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A7D5CD72C; Wed, 18 Apr 2012 21:49:52 +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: [18/37] spec commit: rewriting file specs to jasmine: part 1 Message-Id: <20120418214952.A7D5CD72C@tyr.zones.apache.org> Date: Wed, 18 Apr 2012 21:49:52 +0000 (UTC) rewriting file specs to jasmine: part 1 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/14c67854 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/14c67854 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/14c67854 Branch: refs/heads/master Commit: 14c6785474207492595389822652fb4e95722b1f Parents: 978151f Author: Fil Maj Authored: Tue Apr 10 08:54:17 2012 -0700 Committer: Fil Maj Committed: Mon Apr 16 16:06:50 2012 -0700 ---------------------------------------------------------------------- autotest/pages/file.html | 90 +- autotest/tests/compass.tests.js | 3 +- autotest/tests/file.tests.js | 3060 ++++++++++++++++------------------ 3 files changed, 1514 insertions(+), 1639 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/14c67854/autotest/pages/file.html ---------------------------------------------------------------------- diff --git a/autotest/pages/file.html b/autotest/pages/file.html index 4d13200..d437b02 100644 --- a/autotest/pages/file.html +++ b/autotest/pages/file.html @@ -1,54 +1,46 @@ - - - - - Cordova: File API Specs - - - - - - - - - - - - - - - - -
Back
-

Cordova: File API Specs

-

-

-
    -
    - -
    - - + + Cordova: File API Specs + + + + + + + + + + + + + + + + + + + + + + + + Back + + http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/14c67854/autotest/tests/compass.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/compass.tests.js b/autotest/tests/compass.tests.js index a523a66..e8f311b 100644 --- a/autotest/tests/compass.tests.js +++ b/autotest/tests/compass.tests.js @@ -52,10 +52,11 @@ describe('Compass (navigator.compass)', function () { navigator.compass.getCurrentHeading(win, fail); }); - waitsFor(function () { return win.wasCalled; }, "win never called", Tests.TEST_TIMEOUT); + waitsFor(function () { return win.wasCalled; }, "success callback never called", Tests.TEST_TIMEOUT); runs(function () { expect(fail).not.toHaveBeenCalled(); + expect(win).toHaveBeenCalled(); }); <<<<<<< HEAD <<<<<<< HEAD