You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/01/17 17:53:28 UTC

spec commit: Remove query param from file:/// test.

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 <ag...@chromium.org>
Authored: Thu Jan 17 11:52:52 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
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;