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

更新video自动化测试用例

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