Updated Branches:
  refs/heads/master 9c0548a9f -> 6d4eff982

Fix FileTransfer test where deleteFile is called with no callback.


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

Branch: refs/heads/master
Commit: 6d4eff982656138d8be65da18f983d2e10dcaa93
Parents: 9c0548a
Author: Andrew Grieve <agri...@chromium.org>
Authored: Mon Sep 24 14:29:02 2012 -0400
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Mon Sep 24 14:29:02 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/6d4eff98/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js 
b/autotest/tests/filetransfer.tests.js
index fcafce7..bde70b6 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -96,6 +96,7 @@ describe('FileTransfer', function() {
 
     // deletes file, if it exists, then invokes callback
     var deleteFile = function(fileName, callback) {
+        callback = callback || function() {};
         var spy = jasmine.createSpy().andCallFake(callback);
         root.getFile(fileName, null,
             // remove file system entry

Reply via email to