提交 24adee83 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新video自动化测试用例

上级 c0cb9d01
...@@ -125,6 +125,7 @@ describe('component-native-video', () => { ...@@ -125,6 +125,7 @@ describe('component-native-video', () => {
const height = res.data.split(' ').at(-1).split('x')[1]; const height = res.data.split(' ').at(-1).split('x')[1];
const res2 = await program.adbCommand('wm density'); const res2 = await program.adbCommand('wm density');
const scale = res2.data.split(' ').at(-1) / 160; const scale = res2.data.split(' ').at(-1) / 160;
if (version > 5) {
expect(await page.data('eventFullscreenclick')).toEqual({ expect(await page.data('eventFullscreenclick')).toEqual({
tagName: 'VIDEO', tagName: 'VIDEO',
type: 'fullscreenclick', type: 'fullscreenclick',
...@@ -134,6 +135,7 @@ describe('component-native-video', () => { ...@@ -134,6 +135,7 @@ describe('component-native-video', () => {
screenHeight: parseInt(width / scale) screenHeight: parseInt(width / scale)
}); });
} }
}
await page.callMethod('exitFullScreen'); await page.callMethod('exitFullScreen');
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册