You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by om...@apache.org on 2016/03/31 01:38:44 UTC
cordova-plugin-file-transfer git commit: Removing the expectation in
spec.34 for the transfer method to be called.
Repository: cordova-plugin-file-transfer
Updated Branches:
refs/heads/master 2b8c1a610 -> c48fc02d7
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/master
Commit: c48fc02d7e47e37137e7528be97b59652d1b8ae1
Parents: 2b8c1a6
Author: Sarangan Rajamanickam <sa...@microsoft.com>
Authored: Wed Mar 30 12:39:09 2016 -0700
Committer: Sarangan Rajamanickam <sa...@microsoft.com>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org