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

更新video自动化测试用例

上级 2659e503
...@@ -19,7 +19,7 @@ describe('API-compressVideo', () => { ...@@ -19,7 +19,7 @@ describe('API-compressVideo', () => {
if (process.env.uniTestPlatformInfo.startsWith('android')) { if (process.env.uniTestPlatformInfo.startsWith('android')) {
const infos = process.env.uniTestPlatformInfo.split(' '); const infos = process.env.uniTestPlatformInfo.split(' ');
const version = parseInt(infos[infos.length - 1]); const version = parseInt(infos[infos.length - 1]);
if (version == 5 || version == 7 || version == 10) return; // android5.1、android7、android10存在兼容问题,待修复 if (version == 5 || version == 7 || version == 9 || version == 10) return; // android5.1、android7、android9、android10存在兼容问题,待修复
expect(await page.data('videoInfoForTest')).toEqual({ expect(await page.data('videoInfoForTest')).toEqual({
width: 640, width: 640,
height: 360, height: 360,
......
...@@ -138,7 +138,7 @@ describe('component-native-video', () => { ...@@ -138,7 +138,7 @@ describe('component-native-video', () => {
}); });
const infos = process.env.uniTestPlatformInfo.split(' '); const infos = process.env.uniTestPlatformInfo.split(' ');
const version = parseInt(infos[infos.length - 1]); const version = parseInt(infos[infos.length - 1]);
if (process.env.uniTestPlatformInfo.startsWith('android') && version > 5) { // android5.1模拟器全屏时会弹出系统提示框,无法响应adb tap命令 if (process.env.uniTestPlatformInfo.startsWith('android') && process.env.android_cpu_type != 'x86' && process.env.android_cpu_type != 'x86_64' && version > 5) { // android5.1模拟器全屏时会弹出系统提示框,无法响应adb tap命令
await page.waitFor(5000); await page.waitFor(5000);
await program.adbCommand('input tap 10 10'); await program.adbCommand('input tap 10 10');
start = Date.now(); start = Date.now();
......
...@@ -477,7 +477,7 @@ ...@@ -477,7 +477,7 @@
this.eventProgress = { this.eventProgress = {
"tagName": res.target?.tagName, "tagName": res.target?.tagName,
"type": res.type, "type": res.type,
"isBufferedValid": res.detail.buffered > 0 "isBufferedValid": res.detail.buffered >= 0
}; };
} }
}, },
...@@ -519,7 +519,7 @@ ...@@ -519,7 +519,7 @@
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
hasSubComponent() : boolean { hasSubComponent() : boolean {
const view = uni.getElementById('video')?.getAndroidView<ViewGroup>(); const view = uni.getElementById('video')?.getAndroidView<ViewGroup>();
return view == null ? false : view.getChildCount() > 1; return view == null ? false : view.getChildAt(0) instanceof ViewGroup;
} }
// #endif // #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册