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 2015/03/11 16:35:13 UTC

[02/13] cordova-plugin-file git commit: Tweak tests to fail if deleteEntry fails (rather than time out)

Tweak tests to fail if deleteEntry fails (rather than time out)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/9d789088
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/9d789088
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/9d789088

Branch: refs/heads/master
Commit: 9d789088bb557357b5651eeecf74eb90774b0525
Parents: 8f7b013
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Mar 10 10:27:54 2015 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Mar 11 11:35:07 2015 -0400

----------------------------------------------------------------------
 tests/tests.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/9d789088/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index c1471d7..1478aaf 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -131,6 +131,7 @@ exports.defineAutoTests = function () {
             // deletes entry, if it exists
             // entry.remove success callback is required: http://www.w3.org/TR/2011/WD-file-system-api-20110419/#the-entry-interface
             success = success || function() {};
+            error = error || failed.bind(null, success, 'deleteEntry failed.');
 
             window.resolveLocalFileSystemURL(root.toURL() + '/' + name, function (entry) {
                 if (entry.isDirectory === true) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org