incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [7/40] git commit: MonkeyPatched FileTransfer.upload, passing all tests
Date Fri, 06 Apr 2012 01:20:42 GMT
MonkeyPatched FileTransfer.upload, passing all tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/30383713
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/30383713
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/30383713

Branch: refs/heads/master
Commit: 3038371391a0437c920fc37e5c2b8bb1a66ade58
Parents: 95a46c6
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Apr 3 18:15:09 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Apr 3 18:15:09 2012 -0700

----------------------------------------------------------------------
 lib/wp7/exec.js |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/30383713/lib/wp7/exec.js
----------------------------------------------------------------------
diff --git a/lib/wp7/exec.js b/lib/wp7/exec.js
index 8432e99..8218b1d 100644
--- a/lib/wp7/exec.js
+++ b/lib/wp7/exec.js
@@ -57,7 +57,17 @@ var MonkeyPatch =
 			return {fileName:arg[0],size:arg[1]};
 		}
 
+	},
+	FileTransfer: 
+	{
+		// [filePath, server, fileKey, fileName, mimeType, params, debug, chunkedMode]
+		"upload":function(arg)
+		{
+			// note, chuncked mode is not supported in WP7 currently
+			return {filePath:arg[0],server:arg[1],fileKey:arg[2],fileName:arg[3],mimeType:arg[4],params:arg[5],debug:arg[6]};
+		}
 	}
+	
 };
 
 module.exports = function(success, fail, service, action, args) 


Mime
View raw message