Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d1e0e582
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d1e0e582
编写于
6月 30, 2023
作者:
D
dongwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avRecorder 视频录制用例上库
Signed-off-by:
N
dongwei
<
dongwei@kaihong.com
>
上级
e71a0278
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
2596 addition
and
5 deletion
+2596
-5
multimedia/media/media_js_standard/AvVideoRecorderTestBase.js
...imedia/media/media_js_standard/AvVideoRecorderTestBase.js
+1080
-1
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js
...order/src/main/js/test/AvVideoRecorderFuncTestOne.test.js
+145
-2
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestThree.test.js
...der/src/main/js/test/AvVideoRecorderFuncTestThree.test.js
+417
-0
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestTwo.test.js
...order/src/main/js/test/AvVideoRecorderFuncTestTwo.test.js
+947
-0
multimedia/media/media_js_standard/avRecorder/src/main/js/test/List.test.js
...edia_js_standard/avRecorder/src/main/js/test/List.test.js
+7
-2
未找到文件。
multimedia/media/media_js_standard/AvVideoRecorderTestBase.js
浏览文件 @
d1e0e582
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js
浏览文件 @
d1e0e582
...
@@ -118,6 +118,151 @@ export default function avVideoRecorderTestOne() {
...
@@ -118,6 +118,151 @@ export default function avVideoRecorderTestOne() {
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_MPEG4_0100 end
'
)
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_MPEG4_0100 end
'
)
})
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0100
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0100 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise1
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0200
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0200 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise2
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0300
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0300 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise3
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0400
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0400 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise4
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0500
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0500 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise5
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0600
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0600 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise6
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0700
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0700 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise7
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0800
* @tc.name : 001.test start-resume
* @tc.desc : Recorder video start-resume
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0800 start
'
)
let
fileName
=
avVideoRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
video
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
avConfig
.
url
=
fdPath
;
avVideoRecorderTestBase
.
avRecorderResumePromise8
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESUME_PROMISE_0800 end
'
)
})
/* *
/* *
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_STOP_PROMISE_0100
* @tc.number : SUB_MULTIMEDIA_AVRECORDER_VIDEO_STOP_PROMISE_0100
* @tc.name : 001.test create-stop
* @tc.name : 001.test create-stop
...
@@ -189,8 +334,6 @@ export default function avVideoRecorderTestOne() {
...
@@ -189,8 +334,6 @@ export default function avVideoRecorderTestOne() {
avVideoRecorderTestBase
.
avRecorderResetPromise7
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
avVideoRecorderTestBase
.
avRecorderResetPromise7
(
avConfig
,
avRecorder
,
recorderTime
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESET_PROMISE_0700 end
'
)
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_AVRECORDER_VIDEO_RESET_PROMISE_0700 end
'
)
})
})
})
})
}
}
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestThree.test.js
0 → 100644
浏览文件 @
d1e0e582
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestTwo.test.js
0 → 100644
浏览文件 @
d1e0e582
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/avRecorder/src/main/js/test/List.test.js
浏览文件 @
d1e0e582
...
@@ -14,8 +14,13 @@
...
@@ -14,8 +14,13 @@
*/
*/
import
avRecorderTest
from
'
./AVRecorderFuncTest.test.js
'
import
avRecorderTest
from
'
./AVRecorderFuncTest.test.js
'
import
avVideoRecorderTestOne
from
'
./AvVideoRecorderFuncTestOne.test.js
'
import
avVideoRecorderTestTwo
from
'
./AvVideoRecorderFuncTestTwo.test.js
'
import
avVideoRecorderTestThree
from
'
./AvVideoRecorderFuncTestThree.test.js
'
export
default
function
testsuite
()
{
export
default
function
testsuite
()
{
avRecorderTest
()
avRecorderTest
()
avVideoRecorderTestOne
()
avVideoRecorderTestTwo
()
avVideoRecorderTestThree
()
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录