Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
20eba6e2
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看板
提交
20eba6e2
编写于
10月 17, 2022
作者:
C
caochuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mediaLibrary 修复 测试用例名称
Signed-off-by:
N
caochuan
<
caochuan@huawei.com
>
上级
641152c8
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
45 addition
and
45 deletion
+45
-45
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets
...entry/src/main/ets/test/mediaLibraryTestCallback.test.ets
+3
-3
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets
.../entry/src/main/ets/test/mediaLibraryTestPromise.test.ets
+3
-3
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromiseOnOff.test.ets
...y/src/main/ets/test/mediaLibraryTestPromiseOnOff.test.ets
+3
-3
multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetPromise2.test.ets
...eAsset/entry/src/main/ets/test/fileAssetPromise2.test.ets
+7
-7
multimedia/medialibrary/mediaLibrary_fileKey/entry/src/main/ets/test/filekeyTestCallback.test.ets
...eKey/entry/src/main/ets/test/filekeyTestCallback.test.ets
+12
-12
multimedia/medialibrary/mediaLibrary_fileKey/entry/src/main/ets/test/filekeyTestPromise.test.ets
...leKey/entry/src/main/ets/test/filekeyTestPromise.test.ets
+13
-13
multimedia/medialibrary/mediaLibrary_fileResult/entry/src/main/ets/test/fetchFileResultCallback.test.ets
.../entry/src/main/ets/test/fetchFileResultCallback.test.ets
+2
-2
multimedia/medialibrary/mediaLibrary_fileResult/entry/src/main/ets/test/fetchFileResultPromise.test.ets
...t/entry/src/main/ets/test/fetchFileResultPromise.test.ets
+2
-2
未找到文件。
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets
浏览文件 @
20eba6e2
...
...
@@ -404,7 +404,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_007'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_00
6
'
;
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_00
7
'
;
let
currentFetchOps
=
imageAndVideoAndfileAndAudiofetchOp
;
let
type
=
'audio'
;
let
count
=
4
;
...
...
@@ -729,7 +729,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_CALLBACK_CREATEASSET_00
1
* @tc.number : SUB_MEDIA_MEDIALIBRARY_CALLBACK_CREATEASSET_00
9
* @tc.name : createAsset
* @tc.desc : Create File Asset image (does not exist)
* @tc.size : MEDIUM
...
...
@@ -737,7 +737,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_CALLBACK_CREATEASSET_009'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_CALLBACK_CREATEASSET_00
1
'
;
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_CALLBACK_CREATEASSET_00
9
'
;
let
currentFetchOps
=
fetchOps
(
testNum
,
'Pictures/Static/'
,
IMAGE_TYPE
);
let
type
=
IMAGE_TYPE
;
let
name
=
new
Date
()
.
getTime
()
+
'.jpg'
;
...
...
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets
浏览文件 @
20eba6e2
...
...
@@ -383,7 +383,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_007'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_00
6
'
;
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_00
7
'
;
let
currentFetchOps
=
imageAndVideoAndfileAndAudiofetchOp
;
let
type
=
'audio'
;
let
count
=
4
;
...
...
@@ -709,7 +709,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_PROMISE_CREATEASSET_00
1
* @tc.number : SUB_MEDIA_MEDIALIBRARY_PROMISE_CREATEASSET_00
9
* @tc.name : createAsset
* @tc.desc : Create File Asset image (does not exist)
* @tc.size : MEDIUM
...
...
@@ -717,7 +717,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_PROMISE_CREATEASSET_009'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_PROMISE_CREATEASSET_00
1
'
;
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_PROMISE_CREATEASSET_00
9
'
;
let
currentFetchOps
=
fetchOps
(
testNum
,
'Pictures/Static/'
,
IMAGE_TYPE
);
let
type
=
IMAGE_TYPE
;
let
name
=
new
Date
()
.
getTime
()
+
'.jpg'
;
...
...
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromiseOnOff.test.ets
浏览文件 @
20eba6e2
...
...
@@ -223,7 +223,7 @@ export default function mediaLibraryTestPromiseOnOffTest(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_PROMISE_ON_00
6
* @tc.number : SUB_MEDIA_MEDIALIBRARY_PROMISE_ON_00
7
* @tc.name : ON
* @tc.desc : ON REMOTE_FILE ASSET
* @tc.size : MEDIUM
...
...
@@ -254,7 +254,7 @@ export default function mediaLibraryTestPromiseOnOffTest(abilityContext) {
expect(count == 0).assertTrue();
done();
} catch (error) {
console.info(`MediaLibraryTest : on 00
6
failed, error: ${error}`);
console.info(`MediaLibraryTest : on 00
7
failed, error: ${error}`);
expect(false).assertTrue();
media.off('remoteFileChange');
done();
...
...
@@ -450,7 +450,7 @@ export default function mediaLibraryTestPromiseOnOffTest(abilityContext) {
expect(true).assertTrue();
done();
} catch (error) {
console.info(`MediaLibraryTest : off 00
6
failed, error: ${error}`);
console.info(`MediaLibraryTest : off 00
7
failed, error: ${error}`);
expect(false).assertTrue();
media.off('fileChange');
done();
...
...
multimedia/medialibrary/mediaLibrary_fileAsset/entry/src/main/ets/test/fileAssetPromise2.test.ets
浏览文件 @
20eba6e2
multimedia/medialibrary/mediaLibrary_fileKey/entry/src/main/ets/test/filekeyTestCallback.test.ets
浏览文件 @
20eba6e2
...
...
@@ -246,27 +246,27 @@ export default function filekeyTestCallbackTest(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
14
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_014
* @tc.name : getFileAssets
* @tc.desc : filekey artistOp
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
14'
,
0
,
async
function
(
done
)
{
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_014'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_014'
await
getFileAssetsBy
(
done
,
testNum
,
'artist'
,
ARTIST
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
15
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_015
* @tc.name : getFileAssets
* @tc.desc : filekey audioAlbumOp
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
15'
,
0
,
async
function
(
done
)
{
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_015'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_015'
await
getFileAssetsBy
(
done
,
testNum
,
'audioAlbum'
,
AUDIOALBUM
);
});
...
...
@@ -279,34 +279,34 @@ export default function filekeyTestCallbackTest(abilityContext) {
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
16'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
16'
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_016'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_016'
await
getFileAssetsBy
(
done
,
testNum
,
'relativePath'
,
RELATIVE_PATH
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
17
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_017
* @tc.name : getFileAssets
* @tc.desc : filekey display_name
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
17'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
17'
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_017'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_017'
await
getFileAssetsBy
(
done
,
testNum
,
'displayName'
,
DISPLAY_NAME
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
18
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_018
* @tc.name : getFileAssets
* @tc.desc : filekey album_name
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
18'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_0
0
18'
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_018'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_CALLBACK_018'
try
{
let
albumName
=
'ImageInfo'
let
currentFetchOp
=
{
...
...
multimedia/medialibrary/mediaLibrary_fileKey/entry/src/main/ets/test/filekeyTestPromise.test.ets
浏览文件 @
20eba6e2
...
...
@@ -239,67 +239,67 @@ export default function filekeyTestPromiseTest(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
14
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_014
* @tc.name : getFileAssets
* @tc.desc : filekey artistOp
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
14'
,
0
,
async
function
(
done
)
{
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_014'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_014'
await
getFileAssetsBy
(
done
,
testNum
,
'artist'
,
ARTIST
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
15
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_015
* @tc.name : getFileAssets
* @tc.desc : filekey audioAlbumOp
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
15'
,
0
,
async
function
(
done
)
{
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_015'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_015'
await
getFileAssetsBy
(
done
,
testNum
,
'audioAlbum'
,
AUDIOALBUM
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
16
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_016
* @tc.name : getFileAssets
* @tc.desc : filekey relative_path
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
16'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
16'
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_016'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_016'
await
getFileAssetsBy
(
done
,
testNum
,
'relativePath'
,
RELATIVE_PATH
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
17
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_017
* @tc.name : getFileAssets
* @tc.desc : filekey display_name
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
17'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
17'
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_017'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_017'
await
getFileAssetsBy
(
done
,
testNum
,
'displayName'
,
DISPLAY_NAME
);
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
18
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_018
* @tc.name : getFileAssets
* @tc.desc : filekey album_name
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
18'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_0
0
18'
it
(
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_018'
,
0
,
async
function
(
done
)
{
let
testNum
=
'SUB_MEDIA_MEDIALIBRARY_FILE_KEY_PROMISE_018'
try
{
let
albumName
=
'ImageInfo'
let
currentFetchOp
=
{
...
...
multimedia/medialibrary/mediaLibrary_fileResult/entry/src/main/ets/test/fetchFileResultCallback.test.ets
浏览文件 @
20eba6e2
...
...
@@ -172,7 +172,7 @@ export default function fetchFileResultCallbackTest(abilityContext) {
* @tc.level : Level 0
*/
it('SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETCOUNT_CALLBACK_001_04', 0, async function (done) {
let testNum = 'SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETCOUNT_CALLBACK_001_0
3
'
let testNum = 'SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETCOUNT_CALLBACK_001_0
4
'
let expectCount = 0
let currentFetchOp = fetchOps(testNum, 'Documents/zeor/', FILE_TYPE)
await checkAssetCount(done, testNum, currentFetchOp, expectCount)
...
...
@@ -324,7 +324,7 @@ export default function fetchFileResultCallbackTest(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETPOSITIONOBJECT_CALLBACK_007_0
2
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETPOSITIONOBJECT_CALLBACK_007_0
3
* @tc.name : getPositionObject
* @tc.desc : Get FetchResult, get position 1 object, check result
* @tc.size : MEDIUM
...
...
multimedia/medialibrary/mediaLibrary_fileResult/entry/src/main/ets/test/fetchFileResultPromise.test.ets
浏览文件 @
20eba6e2
...
...
@@ -159,7 +159,7 @@ export default function fetchFileResultPromiseTest(abilityContext) {
* @tc.level : Level 0
*/
it('SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETCOUNT_PROMISE_001_04', 0, async function (done) {
let testNum = 'SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETCOUNT_PROMISE_001_0
3
'
let testNum = 'SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETCOUNT_PROMISE_001_0
4
'
let expectCount = 0
let currentFetchOp = fetchOps(testNum, 'Documents/zeor/', FILE_TYPE)
await checkAssetCount(done, testNum, currentFetchOp, expectCount)
...
...
@@ -378,7 +378,7 @@ export default function fetchFileResultPromiseTest(abilityContext) {
});
/**
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETPOSITIONOBJECT_PROMISE_007_0
2
* @tc.number : SUB_MEDIA_MEDIALIBRARY_FETCHRESULT_GETPOSITIONOBJECT_PROMISE_007_0
3
* @tc.name : getPositionObject
* @tc.desc : Get FetchResult, get position 1 object, check result
* @tc.size : MEDIUM
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录