From 9c5d6c409b3520543e98f01b2ce990a50326e42d Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Wed, 20 Nov 2024 11:38:34 +0800 Subject: [PATCH] =?UTF-8?q?[audio]=E4=BF=AE=E6=94=B9asset=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-inner-audio-context.test.js | 2 +- .../API/get-file-system-manager/get-file-system-manager.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/create-inner-audio-context/create-inner-audio-context.test.js b/pages/API/create-inner-audio-context/create-inner-audio-context.test.js index 36e47f0c..81627b9d 100644 --- a/pages/API/create-inner-audio-context/create-inner-audio-context.test.js +++ b/pages/API/create-inner-audio-context/create-inner-audio-context.test.js @@ -83,7 +83,7 @@ describe('inner-audio', () => { await page.setData({ isPlayEnd: false }) - await page.callMethod('setSrc','/static/uni-autoTest/alert2s.mp3') + await page.callMethod('setSrc','file:///android_asset/uni-autoTest/alert2s.mp3') await page.waitFor(3000); expect(await page.data('isPlayEnd')).toBeTruthy(); }); 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 b0f23a6a..d63c5405 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 @@ -1490,7 +1490,7 @@ describe('ExtApi-FileManagerTest', () => { } await page.setData({ - basePath: '/static/uni-app-x/version.json', + basePath: 'file:///android_asset/uni-app-x', logAble: false, readFileRet: "", readFile: '/version.json' -- GitLab