CB-10088 - filetransfer spec.10 and spec.11 test is faulty

This commit is contained in:
Shazron Abdullah
2015-11-26 13:45:07 -08:00
parent c97f544ef8
commit 3ae73a2879
+2
View File
@@ -433,6 +433,7 @@ exports.defineAutoTests = function () {
it("filetransfer.spec.11 should call the error callback on abort()", function (done) {
var fileURL = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
fileURL = fileURL + '?q=' + (new Date()).getTime();
transfer.download(fileURL, localFilePath, unexpectedCallbacks.httpWin, done);
setTimeout(function() {
@@ -468,6 +469,7 @@ exports.defineAutoTests = function () {
it("filetransfer.spec.10 should be stopped by abort() right away", function (done) {
var fileURL = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
fileURL = fileURL + '?q=' + (new Date()).getTime();
expect(transfer.abort).not.toThrow(); // should be a no-op.