cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [02/13] cordova-plugin-file git commit: Tweak tests to fail if deleteEntry fails (rather than time out)
Date Wed, 11 Mar 2015 15:35:13 GMT
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 <agrieve@chromium.org>
Authored: Tue Mar 10 10:27:54 2015 -0400
Committer: Andrew Grieve <agrieve@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


Mime
View raw message