Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3e8f2778
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3e8f2778
编写于
10月 24, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 24, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5983 【杂散】【主题】覆盖新增壁纸和锁屏的接口,挑单到月度分支
Merge pull request !5983 from 张育帅/cherry-pick-1666247868
上级
24293b7f
6246be39
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
729 addition
and
91 deletion
+729
-91
theme/screenlock_ets/entry/src/main/ets/test/screenLockTest.ets
...screenlock_ets/entry/src/main/ets/test/screenLockTest.ets
+59
-8
theme/wallpaper_ets/Test.json
theme/wallpaper_ets/Test.json
+9
-0
theme/wallpaper_ets/entry/src/main/ets/test/wallpaperTest.ets
...e/wallpaper_ets/entry/src/main/ets/test/wallpaperTest.ets
+661
-83
未找到文件。
theme/screenlock_ets/entry/src/main/ets/test/screenLockTest.ets
浏览文件 @
3e8f2778
// @ts-nocheck
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -295,15 +294,10 @@ export default function screenLockJSUnit() {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0009-------------------");
let flag = null;
try{
flag = await screenLock.onSystemEvent((
err,
data) => {
flag = await screenLock.onSystemEvent((data) => {
console.info("SUB_MISC_THEME_screenLock_API_0009 screenLock.onSystemEvent start");
if (err){
console.info("SUB_MISC_THEME_screenLock_API_0009 screenLock.onSystemEvent err: " + JSON.stringify(err));
expect().assertFalse();
done();
};
expect( data != null ).assertTrue();
console.info("SUB_MISC_THEME_screenLock_API_0009 screenLock.onSystemEvent end" + data)
console.info("SUB_MISC_THEME_screenLock_API_0009 screenLock.onSystemEvent end" + data)
;
done();
});
console.info("SUB_MISC_THEME_screenLock_API_0009 data: " + flag);
...
...
@@ -315,5 +309,62 @@ export default function screenLockJSUnit() {
console.info("-----------------end SUB_MISC_THEME_screenLock_API_0009--------------------");
done()
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0010
* @tc.name Test isLocked() to Checks whether the screen is currently locked.
* @tc.desc Function test
* @tc.level 0
*/
it('SUB_MISC_THEME_screenLock_API_0010', 0, async function (done) {
console.info('------------------SUB_MISC_THEME_screenLock_API_0010 start----------------------');
let lock = null;
try{
lock = screenLock.isLocked()
console.info('SUB_MISC_THEME_screenLock_API_0010 data : ' + JSON.stringify(lock));
if (typeof lock == "boolean") {
expect(true).assertTrue();
done()
}else{
expect().assertFail();
done()
}
}catch(err){
console.info('SUB_MISC_THEME_screenLock_API_0010 err : ' + JSON.stringify(err));
expect().assertFail();
done()
}
console.info('------------------SUB_MISC_THEME_screenLock_API_0010 end----------------------');
done()
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0011
* @tc.name Test isSecure() to Checks whether the screen lock of the current device is secure.
* @tc.desc Function test
* @tc.level 0
*/
it('SUB_MISC_THEME_screenLock_API_0011', 0, async function (done) {
console.info('------------------SUB_MISC_THEME_screenLock_API_0011 start----------------------');
let secured = null;
try{
secured = screenLock.isSecure()
console.info('SUB_MISC_THEME_screenLock_API_0011 data : ' + JSON.stringify(secured));
if (typeof secured == "boolean") {
expect(true).assertTrue();
done()
}else{
expect().assertFail();
done()
}
}catch(err){
console.info('SUB_MISC_THEME_screenLock_API_0011 err : ' + JSON.stringify(err));
expect().assertFail();
done()
}
console.info('------------------SUB_MISC_THEME_screenLock_API_0011 end----------------------');
done()
});
});
}
theme/wallpaper_ets/Test.json
浏览文件 @
3e8f2778
...
...
@@ -14,6 +14,15 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[
"mount -o rw,remount /"
],
"push"
:
[
"wp.png ->/system/etc/wp.png"
]
}
]
}
theme/wallpaper_ets/entry/src/main/ets/test/wallpaperTest.ets
浏览文件 @
3e8f2778
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录