From 0c2b06ca9672cc8e88c5d08b8d5ca268fca4cf3e Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Thu, 18 Apr 2024 16:19:15 +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/get-file-system-manager.test.js | 5 +++++ .../get-file-system-manager/get-file-system-manager.uvue | 6 +++--- pages/CSS/transition/transition.uvue | 1 - 3 files changed, 8 insertions(+), 4 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 69c2599f..054384c7 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 @@ -1156,6 +1156,7 @@ describe('ExtApi-FileManagerTest', () => { if (!isAndroid()) { return } + console.log('saveFileSyncTest', 'start') let globalTempPath = await getData('globalTempPath') let basePath = await getData('basePath') await page.setData({ @@ -1163,6 +1164,7 @@ describe('ExtApi-FileManagerTest', () => { basePath: basePath }) await clearDir('') + console.log('saveFileSyncTest', '1') await page.setData({ logAble: false, basePath: globalTempPath, @@ -1172,6 +1174,7 @@ describe('ExtApi-FileManagerTest', () => { accessFile: '2.txt' }) await createFile() + console.log('saveFileSyncTest', '2') await page.setData({ basePath: basePath, writeFile: 'save/2.txt', @@ -1181,6 +1184,7 @@ describe('ExtApi-FileManagerTest', () => { let btnRemoveSavedFileRet = await page.$('#btn-remove-saved-file') await btnRemoveSavedFileRet.tap() await isDone() + console.log('saveFileSyncTest', '3') let removeSavedFileRet = await getData("removeSavedFileRet") expect(removeSavedFileRet).toEqual('removeSavedFile:ok') @@ -1188,6 +1192,7 @@ describe('ExtApi-FileManagerTest', () => { removeSavedFileRet: '' }) await clearDir('') + console.log('saveFileSyncTest', '4') }); it('getSavedFileListTest', 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 cd3465e8..2eb84fa9 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 @@ -132,7 +132,7 @@ fd: '', closeFileRet: '', bytesWritten: 0, - fstat: new Stats(), + fstat: null as Stats | null, ftruncateRet: '', readZipFile: 'to.zip', getSavedFileListRet:'', @@ -924,13 +924,13 @@ this.log += 'removeSavedFileTest success:' + JSON.stringify(res) + '\n\n' } this.removeSavedFileRet = res.errMsg - console.log("removeSavedFileTest success", res) + console.error("removeSavedFileTest success", res) }, fail: (res : UniError) => { if (this.logAble) { this.log += 'removeSavedFileTest fail:' + JSON.stringify(res) + '\n\n' } - console.log('removeSavedFileTest fail', res) + console.error('removeSavedFileTest fail', res) }, complete: (_) => { this.done = true diff --git a/pages/CSS/transition/transition.uvue b/pages/CSS/transition/transition.uvue index 44433f42..f2b07257 100644 --- a/pages/CSS/transition/transition.uvue +++ b/pages/CSS/transition/transition.uvue @@ -138,7 +138,6 @@ this.isTransitionstyleBackground = !this.isTransitionstyleBackground }, changeBackground2() { - console.log(aa) this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground ? 'brown' : 'rgba(0, 0, 0, 0.5);' -- GitLab