提交 1ad45bff 编写于 作者: M mahaifeng

[audio]音频自动化测试用例

上级 be715a52
...@@ -84,6 +84,7 @@ describe('inner-audio', () => { ...@@ -84,6 +84,7 @@ describe('inner-audio', () => {
isPlayEnd: false isPlayEnd: false
}) })
await page.callMethod('setSrc','file:///android_asset/uni-autoTest/alert2s.mp3') await page.callMethod('setSrc','file:///android_asset/uni-autoTest/alert2s.mp3')
await page.callMethod('play')
await page.waitFor(3000); await page.waitFor(3000);
expect(await page.data('isPlayEnd')).toBeTruthy(); expect(await page.data('isPlayEnd')).toBeTruthy();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册