You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2012/10/02 16:12:07 UTC

spec commit: Tweak FileTransfer abort tests to have a larget timeout value.

Updated Branches:
  refs/heads/master 13bfeaa41 -> 7c800f69d


Tweak FileTransfer abort tests to have a larget timeout value.


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

Branch: refs/heads/master
Commit: 7c800f69d287d4ddc35db3b2d297dec2efb388b9
Parents: 13bfeaa
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Oct 2 10:11:41 2012 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Oct 2 10:11:41 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/7c800f69/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index f3653b4..2793e29 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -166,7 +166,7 @@ describe('FileTransfer', function() {
 
             var downloadFail = jasmine.createSpy().andCallFake(function(e) {
                 expect(e.code).toBe(FileTransferError.ABORT_ERR);
-                expect(new Date() - startTime).toBeLessThan(150);
+                expect(new Date() - startTime).toBeLessThan(300);
             });
 
             this.after(function() {
@@ -321,7 +321,7 @@ describe('FileTransfer', function() {
 
             var uploadFail = jasmine.createSpy().andCallFake(function(e) {
                 expect(e.code).toBe(FileTransferError.ABORT_ERR);
-                expect(new Date() - startTime).toBeLessThan(150);
+                expect(new Date() - startTime).toBeLessThan(300);
             });
 
             var fileWin = function(fileEntry) {