You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/06/14 23:42:50 UTC

[4/4] spec commit: [CB-798] fix FileTransfer.upload 'should handle missing file'

[CB-798] fix FileTransfer.upload 'should handle missing file'


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

Branch: refs/heads/master
Commit: e43ce4300fbbf11f7ffc0d90d84bcacf88f9d469
Parents: 0259dca
Author: Don Coleman <dc...@chariotsolutions.com>
Authored: Thu May 17 20:31:28 2012 -0400
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Jun 13 16:43:42 2012 -0700

----------------------------------------------------------------------
 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/e43ce430/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index 411ef4d..0779116 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -365,9 +365,9 @@ describe('FileTransfer', function() {
             });
 
             runs(function() {
-                deleteFile(localFileName, function(fileEntry) {
+                deleteFile(localFileName, function() {
                     var ft = new FileTransfer();
-                    ft.upload(fileEntry.fullPath, remoteFile, uploadWin, uploadFail);
+                    ft.upload(root.fullPath + "/" + localFileName, remoteFile, uploadWin, uploadFail);
                 }, fail);
             });