Updated Branches:
  refs/heads/master 7c800f69d -> 79dc8f3d1

Move startTime of FileTransfer upload test to be after File creation.


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

Branch: refs/heads/master
Commit: 79dc8f3d133f638b5ece4df00c238a12c16591b5
Parents: 7c800f6
Author: Andrew Grieve <agri...@chromium.org>
Authored: Tue Oct 2 11:27:24 2012 -0400
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Tue Oct 2 11:27:24 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/79dc8f3d/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js 
b/autotest/tests/filetransfer.tests.js
index 2793e29..610bf42 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -317,7 +317,7 @@ describe('FileTransfer', function() {
 
             var fileFail = createDoNotCallSpy('fileFail');
             var uploadWin = createDoNotCallSpy('uploadWin', 'Should have been 
aborted');
-            var startTime = +new Date();
+            var startTime;
 
             var uploadFail = jasmine.createSpy().andCallFake(function(e) {
                 expect(e.code).toBe(FileTransferError.ABORT_ERR);
@@ -332,6 +332,7 @@ describe('FileTransfer', function() {
                 options.fileName = localFileName;
                 options.mimeType = "text/plain";
 
+                startTime = +new Date();
                 // removing options cause Android to timeout
                 ft.abort(); // should be a no-op.
                 ft.upload(fileEntry.fullPath, remoteFile, uploadWin, 
uploadFail, options);

Reply via email to