Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9b0fd300
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看板
提交
9b0fd300
编写于
6月 18, 2022
作者:
Z
zhang-junxi66
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Signed-off-by: zhang-junxi66 <zhangjunxi1@huawei.com>
fix:codeCheck
上级
ce6e6153
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
miscservices/wallpaper_js/src/main/js/Test/Wallpaper/WallpaperJsunit.test.js
...per_js/src/main/js/Test/Wallpaper/WallpaperJsunit.test.js
+6
-6
未找到文件。
miscservices/wallpaper_js/src/main/js/Test/Wallpaper/WallpaperJsunit.test.js
浏览文件 @
9b0fd300
...
@@ -17,8 +17,8 @@ import wallpaper from '@ohos.wallpaper'
...
@@ -17,8 +17,8 @@ import wallpaper from '@ohos.wallpaper'
const
WALLPAPER_SYSTEM
=
0
;
const
WALLPAPER_SYSTEM
=
0
;
const
WALLPAPER_LOCKSCREEN
=
1
;
const
WALLPAPER_LOCKSCREEN
=
1
;
var
imageSource
_s
ystem
=
'
/data/service/el1/public/wallpaper/0/system/wallpaper
'
;
var
imageSource
S
ystem
=
'
/data/service/el1/public/wallpaper/0/system/wallpaper
'
;
var
imageSource
_l
ockscreen
=
'
/data/service/el1/public/wallpaper/0/lockscreen/wallpaper_lock
'
;
var
imageSource
L
ockscreen
=
'
/data/service/el1/public/wallpaper/0/lockscreen/wallpaper_lock
'
;
describe
(
'
WallpaperJsunitTest
'
,
function
()
{
describe
(
'
WallpaperJsunitTest
'
,
function
()
{
beforeAll
(
async
function
()
{
beforeAll
(
async
function
()
{
...
@@ -480,7 +480,7 @@ describe('WallpaperJsunitTest', function () {
...
@@ -480,7 +480,7 @@ describe('WallpaperJsunitTest', function () {
* @tc.level 0
* @tc.level 0
*/
*/
it
(
'
testSetWallpaperURLPromiseLock104
'
,
0
,
async
function
(
done
)
{
it
(
'
testSetWallpaperURLPromiseLock104
'
,
0
,
async
function
(
done
)
{
await
wallpaper
.
setWallpaper
(
imageSource
_l
ockscreen
,
WALLPAPER_LOCKSCREEN
).
then
((
data
)
=>
{
await
wallpaper
.
setWallpaper
(
imageSource
L
ockscreen
,
WALLPAPER_LOCKSCREEN
).
then
((
data
)
=>
{
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLPromiseLock data :
'
+
JSON
.
stringify
(
data
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLPromiseLock data :
'
+
JSON
.
stringify
(
data
));
if
((
data
!=
undefined
)
&&
(
data
!=
null
)
&&
(
data
!=
''
))
{
if
((
data
!=
undefined
)
&&
(
data
!=
null
)
&&
(
data
!=
''
))
{
expect
(
true
).
assertTrue
();
expect
(
true
).
assertTrue
();
...
@@ -501,7 +501,7 @@ describe('WallpaperJsunitTest', function () {
...
@@ -501,7 +501,7 @@ describe('WallpaperJsunitTest', function () {
* @tc.level 0
* @tc.level 0
*/
*/
it
(
'
testSetWallpaperURLCallbackSystem103
'
,
0
,
async
function
(
done
)
{
it
(
'
testSetWallpaperURLCallbackSystem103
'
,
0
,
async
function
(
done
)
{
await
wallpaper
.
setWallpaper
(
imageSource
_s
ystem
,
WALLPAPER_SYSTEM
,
function
(
err
,
data
)
{
await
wallpaper
.
setWallpaper
(
imageSource
S
ystem
,
WALLPAPER_SYSTEM
,
function
(
err
,
data
)
{
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackSystem err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackSystem err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackSystem data :
'
+
JSON
.
stringify
(
data
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackSystem data :
'
+
JSON
.
stringify
(
data
));
if
(
err
)
{
if
(
err
)
{
...
@@ -527,7 +527,7 @@ describe('WallpaperJsunitTest', function () {
...
@@ -527,7 +527,7 @@ describe('WallpaperJsunitTest', function () {
done
();
done
();
return
;
return
;
}
}
wallpaper
.
setWallpaper
(
imageSource
_s
ystem
,
WALLPAPER_SYSTEM
).
then
((
data
)
=>
{
wallpaper
.
setWallpaper
(
imageSource
S
ystem
,
WALLPAPER_SYSTEM
).
then
((
data
)
=>
{
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLPromiseSystem data :
'
+
JSON
.
stringify
(
data
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLPromiseSystem data :
'
+
JSON
.
stringify
(
data
));
if
((
data
!=
undefined
)
&&
(
data
!=
null
)
&&
(
data
!=
''
))
{
if
((
data
!=
undefined
)
&&
(
data
!=
null
)
&&
(
data
!=
''
))
{
expect
(
true
).
assertTrue
();
expect
(
true
).
assertTrue
();
...
@@ -548,7 +548,7 @@ describe('WallpaperJsunitTest', function () {
...
@@ -548,7 +548,7 @@ describe('WallpaperJsunitTest', function () {
* @tc.level 0
* @tc.level 0
*/
*/
it
(
'
testSetWallpaperURLCallbackLock104
'
,
0
,
async
function
(
done
)
{
it
(
'
testSetWallpaperURLCallbackLock104
'
,
0
,
async
function
(
done
)
{
await
wallpaper
.
setWallpaper
(
imageSource
_l
ockscreen
,
WALLPAPER_LOCKSCREEN
,
function
(
err
,
data
)
{
await
wallpaper
.
setWallpaper
(
imageSource
L
ockscreen
,
WALLPAPER_LOCKSCREEN
,
function
(
err
,
data
)
{
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackLock err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackLock err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackLock data :
'
+
JSON
.
stringify
(
data
));
console
.
info
(
'
wallpaperXTS ===> testSetWallpaperURLCallbackLock data :
'
+
JSON
.
stringify
(
data
));
if
(
err
)
{
if
(
err
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录