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

更新video自动化测试用例

上级 c0cb9d01
...@@ -125,14 +125,16 @@ describe('component-native-video', () => { ...@@ -125,14 +125,16 @@ 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;
expect(await page.data('eventFullscreenclick')).toEqual({ if (version > 5) {
tagName: 'VIDEO', expect(await page.data('eventFullscreenclick')).toEqual({
type: 'fullscreenclick', tagName: 'VIDEO',
screenX: parseInt(10 / scale), type: 'fullscreenclick',
screenY: parseInt(10 / scale), screenX: parseInt(10 / scale),
screenWidth: parseInt(height / scale), screenY: parseInt(10 / scale),
screenHeight: parseInt(width / scale) screenWidth: parseInt(height / 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.
先完成此消息的编辑!
想要评论请 注册