cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject spec commit: Remove query param from file:/// test.
Date Thu, 17 Jan 2013 16:53:28 GMT
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 <agrieve@chromium.org>
Authored: Thu Jan 17 11:52:52 2013 -0500
Committer: Andrew Grieve <agrieve@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;
 


Mime
View raw message