mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2024-10-06 07:42:20 +08:00
Removing the expectation in spec.34 for the transfer method to be called.
This commit is contained in:
parent
2b8c1a6101
commit
c48fc02d7e
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user