cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/2] spec commit: Revert "[CB-2226] Add spec test for FileTransfer.abort error callback"
Date Fri, 05 Apr 2013 19:24:17 GMT
Updated Branches:
  refs/heads/2.6.x 7502d51a0 -> 4cf1a5be2


Revert "[CB-2226] Add spec test for FileTransfer.abort error callback"

This reverts commit 46e478f306f6aae8d550ef8d688329b14bd6a2fa.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/83a5ef0e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/83a5ef0e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/83a5ef0e

Branch: refs/heads/2.6.x
Commit: 83a5ef0e16de6ac7e82843874966cf88566aa111
Parents: 7502d51
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Apr 5 11:34:20 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Fri Apr 5 11:34:20 2013 -0700

----------------------------------------------------------------------
 autotest/tests/filetransfer.tests.js |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/83a5ef0e/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index a766879..f459bb4 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -276,26 +276,6 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should call the error callback on abort()", function() {
-            var downloadWin = createDoNotCallSpy('downloadWin');
-           var downloadFail = jasmine.createSpy().andCallFake(function(e) { console.log("Abort
called") });
-            var remoteFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
-            var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
-            var startTime = +new Date();
-                
-            this.after(function() {
-                deleteFile(localFileName);
-            });
-            runs(function() {
-                var ft = new FileTransfer();
-                ft.abort(); // should be a no-op.
-                ft.download(remoteFile, root.fullPath + "/" + localFileName, downloadWin,
downloadFail);
-                ft.abort();
-                ft.abort(); // should be a no-op.
-            });
-                
-            waitsForAny(downloadFail);
-        });
         it("should get http status on failure", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 


Mime
View raw message