CB-6466 Fix failing test due to recent url change

This commit is contained in:
Michal Mocny
2014-08-15 14:58:07 -04:00
parent 974bbaaa2e
commit b5d1dffc2f
+1 -1
View File
@@ -240,7 +240,7 @@ exports.defineAutoTests = function () {
});
it("filetransfer.spec.7 should be able to download a file using file:// (when hosted from file://)", function (done) {
var downloadFail = createFail(done, "Download error callback should not have been called");
var remoteFile = window.location.href.replace(/\?.*/, '').replace(/ /g, '%20');
var remoteFile = window.location.protocol + '//' + window.location.pathname.replace(/ /g, '%20');
localFileName = remoteFile.substring(remoteFile.lastIndexOf('/') + 1);
var lastProgressEvent = null;