You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/04/05 01:52:24 UTC

spec commit: Revert "[CB-1517] [CB-1518] Add spec test for gzip-encoded resources"

Updated Branches:
  refs/heads/2.6.x 0e3bf8876 -> 7502d51a0


Revert "[CB-1517] [CB-1518] Add spec test for gzip-encoded resources"

This reverts commit da89eaacfdc9625b94a96a3b22a5a50ed309b87e.


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/7502d51a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/7502d51a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/7502d51a

Branch: refs/heads/2.6.x
Commit: 7502d51a0b332007959144cbcdf579ddcd067332
Parents: 0e3bf88
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Apr 4 16:47:59 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Apr 4 16:47:59 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/7502d51a/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index bdc83d9..a766879 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -391,31 +391,6 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("progress should work with gzip encoding", function() {
-           var downloadFail = createDoNotCallSpy('downloadFail');
-           var remoteFile = "http://www.apache.org/";
-           var localFileName = "index.html";
-           var lastProgressEvent = null;
-           
-           var downloadWin = jasmine.createSpy().andCallFake(function(entry) {
-               expect(entry.name).toBe(localFileName);
-               expect(lastProgressEvent.loaded).toBeGreaterThan(1, 'loaded');
-               expect(lastProgressEvent.total).not.toBeLessThan(lastProgressEvent.loaded);
-               expect(lastProgressEvent.lengthComputable).toBe(true, 'lengthComputable');
-           });
-
-           this.after(function() {
-                      deleteFile(localFileName);
-                      });
-           runs(function() {
-               var ft = new FileTransfer();
-               ft.onprogress = function(e) {
-                   lastProgressEvent = e;
-               };
-               ft.download(remoteFile, root.fullPath + "/" + localFileName, downloadWin, downloadFail);
-           });
-           waitsForAny(downloadWin, downloadFail);
-        });
     });
     describe('upload method', function() {
         it("should be able to upload a file", function() {