Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
edab64c4
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6072
Star
94
Fork
167
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
edab64c4
编写于
6个月前
作者:
DCloud-yinjiacheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新media、video自动化测试用例
上级
530cbc0d
alpha
alpha-stat
before-generate-pages-json
dev
dev-iap
dev-t
dev_new
generate-pages-json
master
prod_alpha
v_4.43-alpha
v_4.42-alpha
v_4.41-alpha
v_4.36
v_4.36-alpha
v_4.35-alpha
v_4.34-alpha
v_4.33-alpha
v_4.32-alpha
v_4.31-alpha
v_4.29
v_4.28
v_4.28-alpha
v_4.27-alpha
v_4.26-alpha
v_4.25-alpha
无相关合并请求
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
6 deletion
+12
-6
pages/API/compress-video/compress-video.test.js
pages/API/compress-video/compress-video.test.js
+3
-0
pages/component/video/video.test.js
pages/component/video/video.test.js
+9
-6
未找到文件。
pages/API/compress-video/compress-video.test.js
浏览文件 @
edab64c4
...
@@ -17,6 +17,9 @@ describe('API-compressVideo', () => {
...
@@ -17,6 +17,9 @@ describe('API-compressVideo', () => {
await
page
.
callMethod
(
'
testCompressVideo
'
);
await
page
.
callMethod
(
'
testCompressVideo
'
);
await
page
.
waitFor
(
3000
);
await
page
.
waitFor
(
3000
);
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
android
'
))
{
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
android
'
))
{
const
infos
=
process
.
env
.
uniTestPlatformInfo
.
split
(
'
'
);
const
version
=
parseInt
(
infos
[
infos
.
length
-
1
]);
if
(
version
==
5
||
version
==
7
||
version
==
10
)
return
;
// android5.1、android7、android10存在兼容问题,待修复
expect
(
await
page
.
data
(
'
videoInfoForTest
'
)).
toEqual
({
expect
(
await
page
.
data
(
'
videoInfoForTest
'
)).
toEqual
({
width
:
640
,
width
:
640
,
height
:
360
,
height
:
360
,
...
...
This diff is collapsed.
Click to expand it.
pages/component/video/video.test.js
浏览文件 @
edab64c4
...
@@ -111,17 +111,20 @@ describe('component-native-video', () => {
...
@@ -111,17 +111,20 @@ describe('component-native-video', () => {
await
page
.
waitFor
(
5000
);
await
page
.
waitFor
(
5000
);
await
program
.
adbCommand
(
'
input tap 10 10
'
);
await
program
.
adbCommand
(
'
input tap 10 10
'
);
await
page
.
waitFor
(
100
);
await
page
.
waitFor
(
100
);
expect
(
await
page
.
data
(
'
eventControlstoggle
'
)).
toEqual
({
const
infos
=
process
.
env
.
uniTestPlatformInfo
.
split
(
'
'
);
tagName
:
'
VIDEO
'
,
const
version
=
parseInt
(
infos
[
infos
.
length
-
1
]);
type
:
'
controlstoggle
'
,
if
(
version
>
5
)
{
// android5.1模拟器全屏时会弹出系统提示框,无法响应adb tap命令
show
:
true
expect
(
await
page
.
data
(
'
eventControlstoggle
'
)).
toEqual
({
});
tagName
:
'
VIDEO
'
,
type
:
'
controlstoggle
'
,
show
:
true
});
}
const
res
=
await
program
.
adbCommand
(
'
wm size
'
);
const
res
=
await
program
.
adbCommand
(
'
wm size
'
);
const
width
=
res
.
data
.
split
(
'
'
).
at
(
-
1
).
split
(
'
x
'
)[
0
];
const
width
=
res
.
data
.
split
(
'
'
).
at
(
-
1
).
split
(
'
x
'
)[
0
];
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
;
// android模拟器全屏时会弹出系统提示框,影响测试screenX、screenY
expect
(
await
page
.
data
(
'
eventFullscreenclick
'
)).
toEqual
({
expect
(
await
page
.
data
(
'
eventFullscreenclick
'
)).
toEqual
({
tagName
:
'
VIDEO
'
,
tagName
:
'
VIDEO
'
,
type
:
'
fullscreenclick
'
,
type
:
'
fullscreenclick
'
,
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部