提交 a4a4debf 编写于 作者: Z zwx1016320

add screenLock API and moddifed time API and utitest

Signed-off-by: Nzwx1016320 <zhangyushuai1@huawei-partners.com>
上级 2586d121
...@@ -42,7 +42,6 @@ export default function ScreenLockPromiseTest(){ ...@@ -42,7 +42,6 @@ export default function ScreenLockPromiseTest(){
*/ */
it("SUB_MISC_THEME_screenLock_API_Promise_001", 0, async function (done) { it("SUB_MISC_THEME_screenLock_API_Promise_001", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_Promise_001-------------------"); console.info("------------------start SUB_MISC_THEME_screenLock_API_Promise_001-------------------");
let isScreenLocked = true;
try { try {
screenLock.isScreenLocked().then((data) => { screenLock.isScreenLocked().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_001 isScreenLocked result is " + data); console.info("SUB_MISC_THEME_screenLock_API_Promise_001 isScreenLocked result is " + data);
...@@ -66,7 +65,6 @@ export default function ScreenLockPromiseTest(){ ...@@ -66,7 +65,6 @@ export default function ScreenLockPromiseTest(){
*/ */
it("SUB_MISC_THEME_screenLock_API_Promise_002", 0, async function (done) { it("SUB_MISC_THEME_screenLock_API_Promise_002", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_Promise_002-------------------"); console.info("------------------start SUB_MISC_THEME_screenLock_API_Promise_002-------------------");
let isScreenLocked = false;
try { try {
screenLock.isScreenLocked().then((data) => { screenLock.isScreenLocked().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_002 isScreenLocked result is " + data); console.info("SUB_MISC_THEME_screenLock_API_Promise_002 isScreenLocked result is " + data);
...@@ -173,6 +171,5 @@ export default function ScreenLockPromiseTest(){ ...@@ -173,6 +171,5 @@ export default function ScreenLockPromiseTest(){
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_005-------------------"); console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_005-------------------");
done(); done();
}); });
}) })
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import {describe, it, expect} from "hypium/index" import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import systemTime from "@ohos.systemTime"; import systemTime from "@ohos.systemTime";
export default function systemTimeJsunit() { export default function systemTimeJsunit() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册