From 479d0778898b31b505b3629e0eae97a72623b947 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Wed, 20 Nov 2024 18:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0video=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/video/video.test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/component/video/video.test.js b/pages/component/video/video.test.js index 1c074541..e5e17c77 100644 --- a/pages/component/video/video.test.js +++ b/pages/component/video/video.test.js @@ -50,6 +50,20 @@ describe('component-native-video', () => { }); }); + it('test assets path', async () => { + if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) return; + const oldSrc = await page.data('src'); + await page.setData({ + isError: false, + src: 'file:///android_asset/uni-autoTest/demo10s.mp4' + }); + await page.waitFor(500); + expect(await page.data('isError')).toBe(false); + await page.setData({ + src: oldSrc + }); + }); + it('test event play pause controlstoggle', async () => { await page.callMethod('play'); start = Date.now(); -- GitLab