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/12 06:46:42 UTC

[cordova-plugin-file] branch travis_tests updated: safari test debug log is added

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 de7bff3  safari test debug log is added
de7bff3 is described below

commit de7bff31eb64770e4324c89a7d7c930d8a6843eb
Author: knaito <kn...@asial.co.jp>
AuthorDate: Tue Mar 12 15:46:20 2019 +0900

    safari test debug log is added
---
 tests/tests.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/tests.js b/tests/tests.js
index 22733ab..e587dff 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -265,7 +265,7 @@ exports.defineAutoTests = function () {
             request.onsuccess = function (e) {
                 mydb = e.target.result;
                 mydb.onerror = onError;
-                window.customLog('log', 'step 1B');
+                window.customLog('log', 'step 0');
                 nextTask(mydb, FILE_STORE_);
             };
 
@@ -298,7 +298,7 @@ exports.defineAutoTests = function () {
                         //     'myname': 'hogehoge',
                         //     'mytime': new Date()
                         // };
-                        var mypath = 'file:///persistent/file.spec.9';
+                        var mypath = 'file:///persistent/file.spec.0';
                         var myname = 'hogehogehoge';
                         // var myentry = new MyFile({
                         //     size: 0,
@@ -308,12 +308,14 @@ exports.defineAutoTests = function () {
                         // });
                         var DIR_SEPARATOR = '/';
 
+                        window.customLog('log', 'step 1A');
                         var root = new DirectoryEntry('', DIR_SEPARATOR);
                         var fs_ = new FileSystem('persistent', root);
                         var myentry = new FileEntry('file.spec.0', // fileName 
                                                     '/file.spec.0', // fullPath
                                                     new FileSystem('persistent', fs_.root));
 
+                        window.customLog('log', 'step 1B');
                         myentry.file_ = new MyFile({
                             size: 0,
                             name: myname,
@@ -322,6 +324,7 @@ exports.defineAutoTests = function () {
                         });
 
 
+                        window.customLog('log', 'step 1C');
                         var tx = mydb.transaction([storeName], 'readwrite');
                         tx.objectStore(storeName).put(myentry, mypath);
                         tx.onabort = function (err) {
@@ -351,7 +354,7 @@ exports.defineAutoTests = function () {
                                 onError
                             );
                         };
-
+                        window.customLog('log', 'step 1D');
                     },
                     onError
                 );


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