Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1dffe306
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看板
提交
1dffe306
编写于
10月 27, 2022
作者:
Y
yangbo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixbug no column 666
Signed-off-by:
N
yangbo
<
yangbo258@h-partners.com
>
上级
8bc055c9
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
30 addition
and
14 deletion
+30
-14
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestCallBack.test.js
...ry_js_standard/src/main/js/test/albumTestCallBack.test.js
+6
-6
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestPromise.test.js
...ary_js_standard/src/main/js/test/albumTestPromise.test.js
+24
-8
未找到文件。
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestCallBack.test.js
浏览文件 @
1dffe306
...
@@ -512,12 +512,12 @@ describe('albumTestCallBack.test.js', async function () {
...
@@ -512,12 +512,12 @@ describe('albumTestCallBack.test.js', async function () {
};
};
try
{
try
{
media
.
getAlbums
(
fileHasArgsfetchOp4
,
(
err
,
albumList
)
=>
{
media
.
getAlbums
(
fileHasArgsfetchOp4
,
(
err
,
albumList
)
=>
{
if
(
albumList
=
=
undefined
)
{
if
(
err
!
=
undefined
)
{
expect
(
fals
e
).
assertTrue
();
expect
(
tru
e
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
console
.
info
(
'
GETALBUMASSETS_CALLBACK_002_07 length:
'
+
albumList
.
length
);
console
.
info
(
'
GETALBUMASSETS_CALLBACK_002_07 length:
'
+
albumList
.
length
);
expect
(
albumList
.
length
==
0
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
}
});
});
...
@@ -544,12 +544,12 @@ describe('albumTestCallBack.test.js', async function () {
...
@@ -544,12 +544,12 @@ describe('albumTestCallBack.test.js', async function () {
try
{
try
{
media
.
getAlbums
(
fileHasArgsfetchOp5
,
(
err
,
albumList
)
=>
{
media
.
getAlbums
(
fileHasArgsfetchOp5
,
(
err
,
albumList
)
=>
{
if
(
albumList
=
=
undefined
)
{
if
(
err
!
=
undefined
)
{
expect
(
fals
e
).
assertTrue
();
expect
(
tru
e
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
console
.
info
(
'
GETALBUMASSETS_CALLBACK_002_08 length:
'
+
albumList
.
length
);
console
.
info
(
'
GETALBUMASSETS_CALLBACK_002_08 length:
'
+
albumList
.
length
);
expect
(
albumList
.
length
==
0
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
}
});
});
...
...
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestPromise.test.js
浏览文件 @
1dffe306
...
@@ -423,10 +423,18 @@ describe('albumTestPromise.test.js', async function () {
...
@@ -423,10 +423,18 @@ describe('albumTestPromise.test.js', async function () {
selectionArgs
:
[
videoType
.
toString
()],
selectionArgs
:
[
videoType
.
toString
()],
};
};
try
{
try
{
const
albumList
=
await
media
.
getAlbums
(
fileHasArgsfetchOp4
);
media
.
getAlbums
(
fileHasArgsfetchOp4
).
then
((
albumList
)
=>
{
console
.
info
(
'
GETALBUMASSETS_PROMISE_002_07 length:
'
+
albumList
.
length
);
expect
(
false
).
assertTrue
();
expect
(
albumList
.
length
==
0
).
assertTrue
();
done
();
}).
catch
((
err
)
=>
{
if
(
err
!=
undefined
)
{
expect
(
true
).
assertTrue
();
done
();
return
;
}
expect
(
false
).
assertTrue
();
done
();
done
();
})
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
info
(
'
ALBUM_PROMISE getFileAssets 002_07 passed
'
);
console
.
info
(
'
ALBUM_PROMISE getFileAssets 002_07 passed
'
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
...
@@ -449,10 +457,18 @@ describe('albumTestPromise.test.js', async function () {
...
@@ -449,10 +457,18 @@ describe('albumTestPromise.test.js', async function () {
};
};
try
{
try
{
const
albumList
=
await
media
.
getAlbums
(
fileHasArgsfetchOp5
);
media
.
getAlbums
(
fileHasArgsfetchOp5
).
then
((
albumList
)
=>
{
console
.
info
(
'
GETALBUMASSETS_PROMISE_002_08 length:
'
+
albumList
.
length
);
expect
(
false
).
assertTrue
();
expect
(
albumList
.
length
==
0
).
assertTrue
();
done
();
}).
catch
((
err
)
=>
{
if
(
err
!=
undefined
)
{
expect
(
true
).
assertTrue
();
done
();
return
;
}
expect
(
false
).
assertTrue
();
done
();
done
();
})
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
info
(
'
ALBUM_PROMISE getFileAssets 002_08 passed
'
);
console
.
info
(
'
ALBUM_PROMISE getFileAssets 002_08 passed
'
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录