提交 479d0778 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新video自动化测试用例

上级 62733a43
...@@ -50,6 +50,20 @@ describe('component-native-video', () => { ...@@ -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 () => { it('test event play pause controlstoggle', async () => {
await page.callMethod('play'); await page.callMethod('play');
start = Date.now(); start = Date.now();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册