未验证 提交 37337840 编写于 作者: O openharmony_ci 提交者: Gitee

!6447 【monthly_20221018】【主题】锁屏XTS优化

Merge pull request !6447 from 何海涛/cherry-pick-1667993589
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
import screenLock from '@ohos.screenLock';
import {describe, expect, it} from 'deccjsunit/index'
import { describe, expect, it, beforeEach} from "hypium/index";
const SLEEP_TIME = 1000;
......@@ -22,15 +22,11 @@ export default function ScreenLockPromiseTest(){
describe('ScreenLockServicePromiseTest', function () {
console.info("-----------------------ScreenlockPromiseTest is starting-----------------------");
function sleep(numberMillis) {
let now = new Date();
let exitTime = now.getTime() + numberMillis;
while (true) {
now = new Date();
if (now.getTime() > exitTime)
return;
}
}
let result = false
beforeEach(async function (done) {
result = await screenLock.isScreenLocked();
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_Promise_001
......@@ -45,14 +41,16 @@ export default function ScreenLockPromiseTest(){
try {
screenLock.isScreenLocked().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_001 isScreenLocked result is " + data);
expect(data == true).assertTrue()
expect(data == result).assertTrue()
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_001-------------------");
done();
})
} catch (error) {
console.info("SUB_MISC_THEME_screenLock_API_Promise_001 test_setScreenLocked : error = " + error);
expect(true).assertTrue();
expect().assertFail();
done();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_001-------------------");
done();
});
/*
......@@ -68,14 +66,16 @@ export default function ScreenLockPromiseTest(){
try {
screenLock.isScreenLocked().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_002 isScreenLocked result is " + data);
expect(data == false).assertTrue();
expect(data == result).assertTrue();
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_002-------------------");
done();
});
} catch (error) {
console.info("SUB_MISC_THEME_screenLock_API_Promise_002 test_setScreenLocked : error = " + error);
expect(true).assertTrue();
expect().assertFail();
done();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_002-------------------");
done();
});
/*
......@@ -92,84 +92,14 @@ export default function ScreenLockPromiseTest(){
screenLock.isSecureMode().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_003 isScreenLocked result is " + data);
expect(data == false).assertTrue();
});
} catch (error) {
console.info("SUB_MISC_THEME_screenLock_API_Promise_003 isScreenLocked TRUE: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_003-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_Promise_004
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_Promise_004", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_Promise_004-------------------");
try {
screenLock.unlockScreen().then(() => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_004: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
let unlockScreenResult = 0;
let eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult).then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_004: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_004: isScreenLocked result is " + data);
expect(data == false).assertTrue();
});
} catch (error) {
console.info("Screenlock_Test_1400: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_004-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_Promise_005
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_Promise_005", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_Promise_005-------------------");
try {
screenLock.unlockScreen().then(() => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_005: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
let unlockScreenResult = 1;
let eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult).then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_005: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked().then((data) => {
console.info("SUB_MISC_THEME_screenLock_API_Promise_005: isScreenLocked result is " + data);
expect(data == true).assertTrue();
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_003-------------------");
done();
});
} catch (error) {
console.info("logMessage SUB_MISC_THEME_screenLock_API_Promise_005: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_Promise_005-------------------");
done();
console.info("SUB_MISC_THEME_screenLock_API_Promise_003 isScreenLocked TRUE: error = " + error);
expect().assertFail();
done();
}
});
})
}
......@@ -13,26 +13,21 @@
* limitations under the License.
*/
import screenLock from '@ohos.screenLock';
import { describe, expect, it } from "hypium/index";
import { describe, expect, it, beforeEach} from "hypium/index";
export default function screenLockJSUnit() {
const INTERACTIVE_STATE_END_SLEEP = 0;
const INTERACTIVE_STATE_USERID = 2;
const INTERACTIVE_STATE_BEGIN_SLEEP = 3;
const SLEEP_TIME = 1000;
describe('ScreenLockServiceTest', function () {
console.info("-----------------------ScreenlockTest is starting-----------------------");
console.info("====>-----------------------ScreenlockTest is starting-----------------------");
function sleep(numberMillis) {
let now = new Date();
let exitTime = now.getTime() + numberMillis;
while (true) {
now = new Date();
if (now.getTime() > exitTime)
return;
}
}
let result = false
beforeEach(async function (done) {
result = await screenLock.isScreenLocked();
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0012
......@@ -41,24 +36,31 @@ export default function screenLockJSUnit() {
* @tc.level 0
*/
it('SUB_MISC_THEME_screenLock_API_0012', 0, async function (done) {
console.info('------------------SUB_MISC_THEME_screenLock_API_0012 start----------------------');
console.info('====>-------------SUB_MISC_THEME_screenLock_API_0012 start----------------------');
try{
screenLock.unlock((error, data) => {
if (error) {
console.error(`SUB_MISC_THEME_screenLock_API_0012 failed because: ` + JSON.stringify(error));
screenLock.unlock((err, data) => {
try{
if (err) {
console.info("====>SUB_MISC_THEME_screenLock_API_0012 failed because: " + JSON.stringify(err));
expect().assertFail();
done();
}
let currentResult = screenLock.isLocked()
expect(currentResult).assertEqual(false)
console.info("====>SUB_MISC_THEME_screenLock_API_0012 success.");
console.info('====>-------------SUB_MISC_THEME_screenLock_API_0012 end----------------------');
done();
}catch(err){
console.info('====>SUB_MISC_THEME_screenLock_API_0012 throw_err : ' + JSON.stringify(err));
expect().assertFail();
done();
}
console.log(`SUB_MISC_THEME_screenLock_API_0012 success.`);
expect(true).assertTrue();
done();
}
});
}catch(err){
console.info('SUB_MISC_THEME_screenLock_API_0012 catch err : ' + JSON.stringify(err));
expect().assertFail();
console.info('====>SUB_MISC_THEME_screenLock_API_0012 catch err : ' + JSON.stringify(err));
expect(err.code).assertEqual(201);
done();
}
console.info('------------------SUB_MISC_THEME_screenLock_API_0012 end----------------------');
}
})
/*
......@@ -68,23 +70,24 @@ export default function screenLockJSUnit() {
* @tc.level 0
*/
it('SUB_MISC_THEME_screenLock_API_0013', 0, async function (done) {
console.info('------------------SUB_MISC_THEME_screenLock_API_0013 start----------------------');
console.info('====>-------------SUB_MISC_THEME_screenLock_API_0013 start----------------------');
try{
screenLock.unlock().then((data) => {
console.log(`SUB_MISC_THEME_screenLock_API_0013 success.`);
expect(true).assertTrue();
let currentResult = screenLock.isLocked()
expect(currentResult).assertEqual(false)
console.info("====>SUB_MISC_THEME_screenLock_API_0013 success.");
console.info('====>-------------SUB_MISC_THEME_screenLock_API_0013 end----------------------');
done();
}).catch( err => {
console.error(`SUB_MISC_THEME_screenLock_API_0013 failed because: ` + JSON.stringify(err));
console.info("====>SUB_MISC_THEME_screenLock_API_0013 failed because: " + JSON.stringify(err));
expect().assertFail();
done();
});
}catch(err){
console.info('SUB_MISC_THEME_screenLock_API_0013 catch err : ' + JSON.stringify(err));
console.info('====>SUB_MISC_THEME_screenLock_API_0013 catch err : ' + JSON.stringify(err));
expect().assertFail();
done();
}
console.info('------------------SUB_MISC_THEME_screenLock_API_0013 end----------------------');
}
});
/*
......@@ -96,18 +99,31 @@ export default function screenLockJSUnit() {
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0001", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0001-------------------");
console.info("====>------------------start SUB_MISC_THEME_screenLock_API_0001-------------------");
try {
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0001 screen's status is " + data);
expect(data == true).assertTrue();
try{
if(err){
console.info("====>SUB_MISC_THEME_screenLock_API_0001 failed because: " + JSON.stringify(err));
expect().assertFail();
done();
}
console.info("====>SUB_MISC_THEME_screenLock_API_0001 screen's status is " + data);
expect(data == result).assertTrue();
console.info("====>------------------end SUB_MISC_THEME_screenLock_API_0001-------------------");
done();
}catch(err){
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0001 throw_err = " + err);
expect().assertFail();
done();
}
});
} catch (error) {
console.info("logMessage SUB_MISC_THEME_screenLock_API_0001: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0001-------------------");
done();
} catch (err) {
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0001: err = " + err);
expect().assertFail();
done();
}
});
/*
......@@ -119,18 +135,25 @@ export default function screenLockJSUnit() {
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0002", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0002-------------------");
console.info("====>------------------start SUB_MISC_THEME_screenLock_API_0002-------------------");
try {
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0002 screen's status is " + data);
expect(data == false).assertTrue();
try{
console.info("====>SUB_MISC_THEME_screenLock_API_0002 screen's status is " + data);
expect(data == result).assertTrue();
console.info("====>------------------end SUB_MISC_THEME_screenLock_API_0002-------------------");
done();
}catch(err){
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0002 throw_err = " + err);
expect().assertFail();
done();
}
});
} catch (error) {
console.info("logMessage SUB_MISC_THEME_screenLock_API_0002: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0002-------------------");
done();
} catch (err) {
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0002: err = " + err);
expect().assertFail();
done();
}
});
/*
......@@ -142,132 +165,27 @@ export default function screenLockJSUnit() {
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0003", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0003-------------------");
console.info("====>------------------start SUB_MISC_THEME_screenLock_API_0003-------------------");
try {
screenLock.isSecureMode((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0003 secureMode's result is " + data);
expect(data == false).assertTrue();
});
} catch (error) {
console.info("logMessage SUB_MISC_THEME_screenLock_API_0003: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0003-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0004
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0004", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0004-------------------");
try {
screenLock.unlockScreen(() => {
console.info("SUB_MISC_THEME_screenLock_API_0004: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
let unlockScreenResult = 0;
let eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult, (err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0004: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0004: isScreenLocked result is " + data);
expect(data == false).assertTrue();
});
} catch (error) {
console.info("SUB_MISC_THEME_screenLock_API_0004: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0004-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0005
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0005", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0005-------------------");
try {
screenLock.unlockScreen(() => {
console.info("SUB_MISC_THEME_screenLock_API_0005: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
let unlockScreenResult = 1;
let eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult, (err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0005: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0005: isScreenLocked result is " + data);
expect(data == true).assertTrue();
});
} catch (error) {
console.info("logMessage SUB_MISC_THEME_screenLock_API_0005: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0005-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0006
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0006", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0006-------------------");
try {
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0006: isScreenLocked result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.unlockScreen(() => {
console.info("SUB_MISC_THEME_screenLock_API_0006: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
let unlockScreenResult = 0;
let eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult, (err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0006: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0006: isScreenLocked result is " + data);
expect(data == false).assertTrue();
try{
console.info("====>SUB_MISC_THEME_screenLock_API_0003 secureMode's result is " + data);
expect(data == result).assertTrue();
console.info("====>------------------end SUB_MISC_THEME_screenLock_API_0003-------------------");
done();
}catch(err){
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0003 throw_err = " + err);
expect().assertFail();
done();
}
});
} catch (error) {
console.info("SUB_MISC_THEME_screenLock_API_0006: error = " + error);
expect(true).assertTrue();
} catch (err) {
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0003: err = " + err);
expect().assertFail();
done();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0006-------------------");
done();
});
/*
......@@ -279,90 +197,27 @@ export default function screenLockJSUnit() {
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0007", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0007-------------------");
console.info("====>------------------start SUB_MISC_THEME_screenLock_API_0007-------------------");
try {
screenLock.isScreenLocked((err, data) => {
console.info("SUB_MISC_THEME_screenLock_API_0007: isScreenLocked is successful, result is " + data);
expect(data == false).assertTrue();
});
} catch (error) {
console.info("logMessage SUB_MISC_THEME_screenLock_API_0007: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0007-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0008
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0008", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0008-------------------");
try {
screenLock.isScreenLocked((err, data) => {
console.log("SUB_MISC_THEME_screenLock_API_0008: isScreenLocked result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.unlockScreen(() => {
console.log("SUB_MISC_THEME_screenLock_API_0008: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
let unlockScreenResult = 1;
let eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult, (err, data) => {
console.log("SUB_MISC_THEME_screenLock_API_0008: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked((err, data) => {
console.log("SUB_MISC_THEME_screenLock_API_0008: isScreenLocked result is " + data);
expect(data == true).assertTrue();
});
} catch (error) {
console.info("SUB_MISC_THEME_screenLock_API_0008: error = " + error);
expect(true).assertTrue();
}
console.info("------------------end SUB_MISC_THEME_screenLock_API_0008-------------------");
done();
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0009
* @tc.name Set to locked screen, query the lock screen state is locked state
* @tc.desc Test ScreenLock API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it("SUB_MISC_THEME_screenLock_API_0009", 0, async function (done) {
console.info("------------------start SUB_MISC_THEME_screenLock_API_0009-------------------");
let flag = null;
try{
flag = await screenLock.onSystemEvent((data) => {
console.info("SUB_MISC_THEME_screenLock_API_0009 screenLock.onSystemEvent start");
expect( data != null ).assertTrue();
console.info("SUB_MISC_THEME_screenLock_API_0009 screenLock.onSystemEvent end" + data);
done();
try{
console.info("====>SUB_MISC_THEME_screenLock_API_0007: isScreenLocked is successful, result is " + data);
expect(data == result).assertTrue();
console.info("====>------------------end SUB_MISC_THEME_screenLock_API_0007-------------------");
done();
}catch(err){
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0007 throw_err = " + err);
expect().assertFail();
done();
}
});
console.info("SUB_MISC_THEME_screenLock_API_0009 data: " + flag);
expect( flag == true ).assertTrue();
}catch(err){
console.info("SUB_MISC_THEME_screenLock_API_0009 failed: " + JSON.stringify(err));
} catch (err) {
console.info("====>logMessage SUB_MISC_THEME_screenLock_API_0007: err = " + err);
expect().assertFail();
done();
}
console.info("-----------------end SUB_MISC_THEME_screenLock_API_0009--------------------");
done()
});
});
/*
* @tc.number SUB_MISC_THEME_screenLock_API_0010
......@@ -371,25 +226,19 @@ export default function screenLockJSUnit() {
* @tc.level 0
*/
it('SUB_MISC_THEME_screenLock_API_0010', 0, async function (done) {
console.info('------------------SUB_MISC_THEME_screenLock_API_0010 start----------------------');
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()
}
lock = await screenLock.isLocked()
console.info('====>SUB_MISC_THEME_screenLock_API_0010 data : ' + JSON.stringify(lock));
expect(lock).assertEqual(result);
console.info('====>-------------SUB_MISC_THEME_screenLock_API_0010 end----------------------');
done()
}catch(err){
console.info('SUB_MISC_THEME_screenLock_API_0010 err : ' + JSON.stringify(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()
});
/*
......@@ -399,25 +248,24 @@ export default function screenLockJSUnit() {
* @tc.level 0
*/
it('SUB_MISC_THEME_screenLock_API_0011', 0, async function (done) {
console.info('------------------SUB_MISC_THEME_screenLock_API_0011 start----------------------');
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));
console.info('====>SUB_MISC_THEME_screenLock_API_0011 data : ' + JSON.stringify(secured));
if (typeof secured == "boolean") {
expect(true).assertTrue();
console.info('====>-------------SUB_MISC_THEME_screenLock_API_0011 end----------------------');
done()
}else{
expect().assertFail();
done()
}
}catch(err){
console.info('SUB_MISC_THEME_screenLock_API_0011 err : ' + JSON.stringify(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()
});
});
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册