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 A6910E06B for ; Thu, 17 Jan 2013 16:53:31 +0000 (UTC) Received: (qmail 92215 invoked by uid 500); 17 Jan 2013 16:53:28 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 92190 invoked by uid 500); 17 Jan 2013 16:53:28 -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 92155 invoked by uid 99); 17 Jan 2013 16:53:28 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 16:53:28 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7ABFD1FF8A; Thu, 17 Jan 2013 16:53:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agrieve@apache.org To: commits@cordova.apache.org X-Mailer: ASF-Git Admin Mailer Subject: spec commit: Remove query param from file:/// test. Message-Id: <20130117165328.7ABFD1FF8A@tyr.zones.apache.org> Date: Thu, 17 Jan 2013 16:53:28 +0000 (UTC) Updated Branches: refs/heads/master 0c97fb3eb -> 654a3ef1f Remove query param from file:/// test. This is required when the test fails and you click on the failing test to run just that test. 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/654a3ef1 Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/654a3ef1 Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/654a3ef1 Branch: refs/heads/master Commit: 654a3ef1fb6220ebe04f692d81d03412ee3b4441 Parents: 0c97fb3 Author: Andrew Grieve Authored: Thu Jan 17 11:52:52 2013 -0500 Committer: Andrew Grieve Committed: Thu Jan 17 11:52:52 2013 -0500 ---------------------------------------------------------------------- autotest/tests/filetransfer.tests.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/654a3ef1/autotest/tests/filetransfer.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js index 843a662..4aadfa8 100644 --- a/autotest/tests/filetransfer.tests.js +++ b/autotest/tests/filetransfer.tests.js @@ -138,7 +138,7 @@ describe('FileTransfer', function() { }); it("should be able to download a file using file:// (when hosted from file://)", function() { var fail = createDoNotCallSpy('downloadFail'); - var remoteFile = window.location.href; + var remoteFile = window.location.href.replace(/\?.*/, ''); var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1); var lastProgressEvent = null;