From 7cf636cc764bc9f34acf44ea12bf84674aa739c4 Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Thu, 18 Apr 2024 18:12:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9file=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-file-system-manager.test.js | 21 +++++++++---------- .../get-file-system-manager.uvue | 4 ++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.test.js b/pages/API/get-file-system-manager/get-file-system-manager.test.js index 054384c7..de35737a 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.test.js +++ b/pages/API/get-file-system-manager/get-file-system-manager.test.js @@ -1185,14 +1185,14 @@ describe('ExtApi-FileManagerTest', () => { await btnRemoveSavedFileRet.tap() await isDone() console.log('saveFileSyncTest', '3') - let removeSavedFileRet = await getData("removeSavedFileRet") + console.log('saveFileSyncTest', '4') expect(removeSavedFileRet).toEqual('removeSavedFile:ok') + console.log('saveFileSyncTest', '5') await page.setData({ removeSavedFileRet: '' }) - await clearDir('') - console.log('saveFileSyncTest', '4') + console.log('saveFileSyncTest', '6') }); it('getSavedFileListTest', @@ -1208,7 +1208,9 @@ describe('ExtApi-FileManagerTest', () => { logAble: false, basePath: basePath }) - await clearDir('') + // console.log('getSavedFileListTest', 'start') + // await clearDir('') + // console.log('getSavedFileListTest', 'end') await page.setData({ logAble: false, basePath: globalTempPath, @@ -1230,8 +1232,6 @@ describe('ExtApi-FileManagerTest', () => { await isDone() let fileListSuccess = await getData("getSavedFileListRet") expect(fileListSuccess).toEqual('getSavedFileList:ok') - - await clearDir('') }); it('removeSavedFileTest', @@ -1270,7 +1270,6 @@ describe('ExtApi-FileManagerTest', () => { await isDone() let removeSavedFileRet = await getData("removeSavedFileRet") expect(removeSavedFileRet).toEqual('removeSavedFile:ok') - await clearDir('') }); //openFiletest openFileSynctest closeTest closeTestSync writeTest writeSyncTest @@ -1280,7 +1279,7 @@ describe('ExtApi-FileManagerTest', () => { } - await clearDir('') + // await clearDir('') await page.setData({ logAble: false, mkdirFile: 'fd', @@ -1312,7 +1311,7 @@ describe('ExtApi-FileManagerTest', () => { } - await clearDir('') + // await clearDir('') await page.setData({ logAble: false, mkdirFile: 'fd', @@ -1343,7 +1342,7 @@ describe('ExtApi-FileManagerTest', () => { return } - await clearDir('') + // await clearDir('') await page.setData({ logAble: false, mkdirFile: 'fd', @@ -1418,7 +1417,7 @@ describe('ExtApi-FileManagerTest', () => { logAble: false, basePath: basePath }) - await clearDir('') + // await clearDir('') await page.setData({ diff --git a/pages/API/get-file-system-manager/get-file-system-manager.uvue b/pages/API/get-file-system-manager/get-file-system-manager.uvue index 2eb84fa9..d1b1e0b5 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.uvue +++ b/pages/API/get-file-system-manager/get-file-system-manager.uvue @@ -924,13 +924,13 @@ this.log += 'removeSavedFileTest success:' + JSON.stringify(res) + '\n\n' } this.removeSavedFileRet = res.errMsg - console.error("removeSavedFileTest success", res) + console.log("removeSavedFileTest success", res) }, fail: (res : UniError) => { if (this.logAble) { this.log += 'removeSavedFileTest fail:' + JSON.stringify(res) + '\n\n' } - console.error('removeSavedFileTest fail', res) + console.log('removeSavedFileTest fail', res) }, complete: (_) => { this.done = true -- GitLab