From 1f15f0b16d82245d02480d7fff01a66401ccc684 Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Thu, 29 Aug 2024 16:08:49 +0800 Subject: [PATCH] =?UTF-8?q?[filemanager]=E4=BF=AE=E6=94=B9=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=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 | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 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 e4086ff8..9b2ef897 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 @@ -1411,7 +1411,7 @@ describe('ExtApi-FileManagerTest', () => { console.log('ftruncateFileTest', '7') }); - //testAppendFileBuffer + //testAppendFileBuffer it('testAppendFileBuffer', async () => { if (!isAndroid()) { return @@ -1421,66 +1421,66 @@ describe('ExtApi-FileManagerTest', () => { await btnWrite.tap() await isDone() let arrayBufferRes = await getData("arrayBufferRes") - expect(bytesWritten).toEqual(21) + expect(arrayBufferRes).toEqual(21) }); - + it('testAppendFileBufferSync', async () => { if (!isAndroid()) { return } - + var btnWrite = await page.$('#btn-appendfilesync-buffer') await btnWrite.tap() await isDone() let arrayBufferRes = await getData("arrayBufferRes") - expect(bytesWritten).toEqual(20) + expect(arrayBufferRes).toEqual(20) }); - + it('testWriteReadSyncBuffer', async () => { if (!isAndroid()) { return } - + var btnWrite = await page.$('#btn-writereadsync-buffer') await btnWrite.tap() await isDone() let arrayBufferRes = await getData("arrayBufferRes") - expect(bytesWritten).toEqual(1.11) + expect(arrayBufferRes).toEqual(1.11) }); - + it('testWriteReadBuffer', async () => { if (!isAndroid()) { return } - + var btnWrite = await page.$('#btn-writeread-buffer') await btnWrite.tap() await isDone() let arrayBufferRes = await getData("arrayBufferRes") - expect(bytesWritten).toEqual(1.24) + expect(arrayBufferRes).toEqual(1.24) }); - + it('testWriteReadFileSyncBuffer', async () => { if (!isAndroid()) { return } - + var btnWrite = await page.$('#btn-writereadfilesync-buffer') await btnWrite.tap() await isDone() let arrayBufferRes = await getData("arrayBufferRes") - expect(bytesWritten).toEqual(1.333) + expect(arrayBufferRes).toEqual(1.333) }); - + it('testReadFileBuffer', async () => { if (!isAndroid()) { return } - + var btnWrite = await page.$('#btn-writereadfile-buffer') await btnWrite.tap() await isDone() let arrayBufferRes = await getData("arrayBufferRes") - expect(bytesWritten).toEqual(1.2222222) + expect(arrayBufferRes).toEqual(1.2222222) }); -}); \ No newline at end of file +}); -- GitLab