Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C4DBDBB6 for ; Fri, 21 Sep 2012 03:33:26 +0000 (UTC) Received: (qmail 22228 invoked by uid 500); 21 Sep 2012 03:33:26 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 22136 invoked by uid 500); 21 Sep 2012 03:33:25 -0000 Mailing-List: contact callback-dev-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-dev@incubator.apache.org Received: (qmail 22098 invoked by uid 99); 21 Sep 2012 03:33:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 03:33:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bowserj@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 03:33:16 +0000 Received: by wgbdq11 with SMTP id dq11so1842343wgb.0 for ; Thu, 20 Sep 2012 20:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HEcFYAoFn214WcB7OVAmqxJU7FelomCuDFT8klHSYFM=; b=WvFKyZw5KMkU88rDp7TbT5KYutkAekZ3tB2nvq4v84Fxd7mXx5rzqrbH2gJ/Wd764S QaldCk1K06XXztiXM+IArG0jEaBU7TCO2Q+U/q1B8Htyz4QPIK290CYx9AC4XknEcAjG HymOixtoFAouqSdrMPEXW0pUpXf6kZ0T8vLCUbvg9+7pNn6DPzkuBz+yX7SAA0rdaJ1g fqmUq5weIKKXBm8JnGDnB1cmEjvgaf0MAvOJdrhBv4Ix8P9Vbb6db+1EMXV7AstFS7h5 WQLFBhMtkJ6Nh5a/w33otI5EKHmoCmwCq9Wskg7w3dPkNsmlraqEJode/iZIbdkA1aTq UiGw== MIME-Version: 1.0 Received: by 10.180.91.169 with SMTP id cf9mr855406wib.1.1348198376283; Thu, 20 Sep 2012 20:32:56 -0700 (PDT) Received: by 10.223.195.7 with HTTP; Thu, 20 Sep 2012 20:32:56 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Sep 2012 20:32:56 -0700 Message-ID: Subject: Re: jake showing a failing test From: Joe Bowser To: Andrew Grieve Cc: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hey I try and avoid changing anything in incubator-cordova-js, and I limit my changes to lib/android. As far as tests, they should be automatic if you have your node setup working properly. I know that Fil did some changes on the cordova-js part of the geolocation code due to a bug in the Cordova-Android version of that plugin (not the built-in one), so maybe the test needs some more changes. Also, we agreed earlier that those lines of JS need to be deleted entirely for speed. Joe On Thu, Sep 20, 2012 at 8:13 PM, Andrew Grieve wrote: > Okay, fixed the test by converting some wait()s to waitFor()s. > > > On Thu, Sep 20, 2012 at 10:56 PM, Andrew Grieve wrote: >> >> Well, sorry for the false accusation :(. Looks like the test is just >> flakey: >> >> geolocation getCurrentPosition position acquisition >> it should fire error callback with TIMEOUT code after timeout period has >> elapsed and no position is available >> Error: Expected spy error to have been called with [ { code : 3, message >> : 'Position retrieval timed out.' } ] but it was never called. >> at new jasmine.ExpectationResult (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/thirdparty/jasmine/jasmine.js:102:32) >> at jasmine.Matchers.matcherFn_ [as toHaveBeenCalledWith] >> (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/thirdparty/jasmine/jasmine.js:1171:29) >> at geo.getCurrentPosition.timeout (eval at >> (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/test/runner.js:84:21)) >> at jasmine.Block.execute (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/thirdparty/jasmine/jasmine.js:1001:15) >> at jasmine.Queue.next_ (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/thirdparty/jasmine/jasmine.js:1790:31) >> at jasmine.Queue.next_.onComplete (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/thirdparty/jasmine/jasmine.js:1786:18) >> at Object.jasmine.WaitsBlock.execute [as _onTimeout] >> (/Users/agrieve/Google >> Drive/macfiles/git/incubator-cordova-js/thirdparty/jasmine/jasmine.js:2231:5) >> at Timer.list.ontimeout (timers.js:101:19) >> >> it fails for me most times, but does pass every once-in-a-while. I'll have >> a look and see if I can figure out what's up with it. >> >> >> On Thu, Sep 20, 2012 at 10:46 PM, Andrew Grieve >> wrote: >>> >>> Hey Joe, >>> >>> Looks like your "Fixing CB-1498" commit to the js repo causes jake to >>> fail a unit test. I'll fix it up, but might be a sign that maybe you didn't >>> run the tests before checking in? It would also be helpful if you could >>> rebase before committing and write a description and [platform] in the >>> commit message instead of just the bug id. >>> >> >