Removing the expectation in spec.34 for the transfer method to be called.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/c48fc02d Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/c48fc02d Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/c48fc02d Branch: refs/heads/1.5.x Commit: c48fc02d7e47e37137e7528be97b59652d1b8ae1 Parents: 2b8c1a6 Author: Sarangan Rajamanickam <[email protected]> Authored: Wed Mar 30 12:39:09 2016 -0700 Committer: Sarangan Rajamanickam <[email protected]> Committed: Wed Mar 30 13:15:47 2016 -0700 ---------------------------------------------------------------------- tests/tests.js | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/c48fc02d/tests/tests.js ---------------------------------------------------------------------- diff --git a/tests/tests.js b/tests/tests.js index 120c716..0bdf58d 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -1313,12 +1313,10 @@ exports.defineAutoTests = function () { var uploadFail = function (e) { expect(e.code).toBe(FileTransferError.ABORT_ERR); - expect(specContext.transfer.onprogress).toHaveBeenCalled(); // check that the file is there specContext.root.getFile(specContext.fileName, null, function(entry) { expect(entry).toBeDefined(); - // delay calling done() to wait for the bogus abort() setTimeout(done, GRACE_TIME_DELTA * 2); }, function(err) { @@ -1343,8 +1341,6 @@ exports.defineAutoTests = function () { } }; - spyOn(specContext.transfer, "onprogress").and.callThrough(); - // NOTE: removing uploadOptions cause Android to timeout specContext.transfer.upload(specContext.localFilePath, fileURL, uploadWin, uploadFail, specContext.uploadOptions); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
