You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by kn...@apache.org on 2019/03/08 06:21:28 UTC
[cordova-plugin-file] branch travis_tests updated: use customLogger
This is an automated email from the ASF dual-hosted git repository.
knaito pushed a commit to branch travis_tests
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-file.git
The following commit(s) were added to refs/heads/travis_tests by this push:
new afa1600 use customLogger
afa1600 is described below
commit afa16008eee84ec6182ecda02c3567667eefdd76
Author: knaito <kn...@asial.co.jp>
AuthorDate: Fri Mar 8 15:21:04 2019 +0900
use customLogger
---
tests/tests.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/tests.js b/tests/tests.js
index 0e18ef9..ff1f939 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -33,6 +33,13 @@ exports.defineAutoTests = function () {
/* eslint-enable no-undef */
var MEDIUM_TIMEOUT = 15000;
+ var customLog = function (eventName, eventObject) {
+ window._jasmineParamedicProxyCache.push({
+ eventName: eventName,
+ eventObject: eventObject
+ });
+ };
+
describe('File API', function () {
// Adding a Jasmine helper matcher, to report errors when comparing to FileError better.
var fileErrorMap = {
@@ -313,8 +320,8 @@ exports.defineAutoTests = function () {
deleteEntry(fileName, done);
};
createFile(fileName, function (entry) {
- console.warn('----- entry.toURL() ----');
- console.warn(entry.toURL());
+ customLog('log', '----- entry.toURL() ----');
+ customLog('log', entry.toURL());
window.resolveLocalFileSystemURL(entry.toURL(), win, failed.bind(null, done, 'window.resolveLocalFileSystemURL - Error resolving file URL: ' + entry.toURL()));
}, failed.bind(null, done, 'createFile - Error creating file: ' + fileName), failed.bind(null, done, 'createFile - Error creating file: ' + fileName));
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org