Removing the expectation in spec.34 for the transfer method to be called.

This commit is contained in:
Sarangan Rajamanickam 2016-03-30 12:39:09 -07:00
parent 2b8c1a6101
commit c48fc02d7e

View File

@ -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);
};