Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7f8f6a67
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看板
未验证
提交
7f8f6a67
编写于
4月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
4月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3067 杂散xts用例整改
Merge pull request !3067 from 高曦/master
上级
98398f79
26456575
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
1 addition
and
1610 deletion
+1
-1610
miscservices/InputMethodTest_ets/entry/src/main/ets/MainAbility/test/ScreenLockJsunit.test.ets
...y/src/main/ets/MainAbility/test/ScreenLockJsunit.test.ets
+0
-534
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
...Test_js/src/main/js/default/test/SystemTimeJsunit.test.js
+1
-1076
未找到文件。
miscservices/InputMethodTest_ets/entry/src/main/ets/MainAbility/test/ScreenLockJsunit.test.ets
浏览文件 @
7f8f6a67
...
@@ -166,538 +166,4 @@ export default function screenLockJsunit() {
...
@@ -166,538 +166,4 @@ export default function screenLockJsunit() {
}
}
done();
done();
});
});
/*
* @tc.number : MiscServices_ScreenLock_on_beginWakeUp_0100
* @tc.name : on
* @tc.desc : Receives beginWakeUp called.
*/
it('MiscServices_ScreenLock_on_beginWakeUp_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_beginWakeUp_0100";
try {
screenLock.on('beginWakeUp', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_endWakeUp_0100
* @tc.name : on
* @tc.desc : Receives endWakeUp called.
*/
it('MiscServices_ScreenLock_on_endWakeUp_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_endWakeUp_0100";
try {
screenLock.on('endWakeUp', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_beginScreenOn_0100
* @tc.name : on
* @tc.desc : Receives beginScreenOn called.
*/
it('MiscServices_ScreenLock_on_beginScreenOn_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_beginScreenOn_0100";
try {
screenLock.on('beginScreenOn', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_endScreenOn_0100
* @tc.name : on
* @tc.desc : Receives endScreenOn called.
*/
it('MiscServices_ScreenLock_on_endScreenOn_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_endScreenOn_0100";
try {
screenLock.on('endScreenOn', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_beginScreenOff_0100
* @tc.name : on
* @tc.desc : Receives beginScreenOff called.
*/
it('MiscServices_ScreenLock_on_beginScreenOff_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_beginScreenOff_0100";
try {
screenLock.on('beginScreenOff', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_endScreenOff_0100
* @tc.name : on
* @tc.desc : Receives endScreenOff called.
*/
it('MiscServices_ScreenLock_on_endScreenOff_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_endScreenOff_0100";
try {
screenLock.on('endScreenOff', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_unlockScreen_0100
* @tc.name : on
* @tc.desc : Receives unlockScreen called.
*/
it('MiscServices_ScreenLock_on_unlockScreen_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_unlockScreen_0100";
try {
screenLock.on('unlockScreen', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done()
});
/*
* @tc.number : MiscServices_ScreenLock_on_beginExitAnimation_0100
* @tc.name : on
* @tc.desc : Receives beginExitAnimation called.
*/
it('MiscServices_ScreenLock_on_beginExitAnimation_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_beginExitAnimation_0100";
try {
screenLock.on('beginExitAnimation', (data) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(data));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_beginSleep_0100
* @tc.name : on
* @tc.desc : Receives beginSleep called.
*/
it('MiscServices_ScreenLock_on_beginSleep_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_beginSleep_0100";
try {
screenLock.on('beginSleep', (number) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(number));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/*
* @tc.number : MiscServices_ScreenLock_on_endSleep_0100
* @tc.name : on
* @tc.desc : Receives endSleep called.
*/
it('MiscServices_ScreenLock_on_endSleep_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_endSleep_0100";
try {
screenLock.on('endSleep', (number) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(number));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done()
});
/*
* @tc.number : MiscServices_ScreenLock_on_changeUser_0100
* @tc.name : on
* @tc.desc : Receives changeUser called.
*/
it('MiscServices_ScreenLock_on_changeUser_0100', 0, async function (done) {
let caseName = "MiscServices_ScreenLock_on_changeUser_0100";
try {
screenLock.on('changeUser', (number) => {
console.info(caseName + 'Operation successful. Data: ' + JSON.stringify(number));
expect(true).assertTrue();
done();
})
} catch (err) {
console.info(caseName + 'catch error: ' + err);
expect(true).assertTrue();
done();
}
done();
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_screenlockEnabled_0100
* @tc.name on_screenlockEnabled
* @tc.desc Receives screenlockEnabled change. This callback is invoked when screenlockEnabled is called by runtime
*/
it('Miscservices_ScreenLock_ScreenLock_on_screenlockEnabled_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_on_screenlockEnabled_0100 start*************");
try {
screenLock.on('screenlockEnabled', (error, enable) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_on_screenlockEnabled_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_on_screenlockEnabled_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_beginWakeUp_0100
* @tc.name off_beginWakeUp
* @tc.desc Remove the receives of beginWakeUp
*/
it('Miscservices_ScreenLock_ScreenLock_beginWakeUp_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_beginWakeUp_0100 start*************");
try {
screenLock.off('beginWakeUp', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_beginWakeUp_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_on_screenlockEnabled_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_endWakeUp_0100
* @tc.name off_endWakeUp
* @tc.desc Remove the receives of endWakeUp
*/
it('Miscservices_ScreenLock_ScreenLock_endWakeUp_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_endWakeUp_0100 start*************");
try {
screenLock.off('endWakeUp', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_endWakeUp_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_on_screenlockEnabled_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_beginScreenOn_0100
* @tc.name off_beginScreenOn
* @tc.desc Remove the receives of beginScreenOn
*/
it('Miscservices_ScreenLock_ScreenLock_beginScreenOn_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_beginScreenOn_0100 start*************");
try {
screenLock.off('beginScreenOn', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_beginScreenOn_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_beginScreenOn_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_endScreenOn_0100
* @tc.name off_endScreenOn
* @tc.desc Remove the receives of endScreenOn
*/
it('Miscservices_ScreenLock_ScreenLock_endScreenOn_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_endScreenOn_0100 start*************");
try {
screenLock.off('endScreenOn', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_endScreenOn_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_endScreenOn_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_beginScreenOff_0100
* @tc.name off_beginScreenOff
* @tc.desc Remove the receives of beginScreenOff
*/
it('Miscservices_ScreenLock_ScreenLock_beginScreenOff_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_beginScreenOff_0100 start*************");
try {
screenLock.off('beginScreenOff', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_beginScreenOff_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_beginScreenOff_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_unlockScreen_0100
* @tc.name off_unlockScreen
* @tc.desc Remove the receives of unlockScreen
*/
it('Miscservices_ScreenLock_ScreenLock_unlockScreen_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_unlockScreen_0100 start*************");
try {
screenLock.off('unlockScreen', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_unlockScreen_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_unlockScreen_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_beginExitAnimation_0100
* @tc.name off_beginExitAnimation
* @tc.desc Remove the receives of beginExitAnimation
*/
it('Miscservices_ScreenLock_ScreenLock_beginExitAnimation_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_beginExitAnimation_0100 start*************");
try {
screenLock.off('beginExitAnimation', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_beginExitAnimation_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_beginExitAnimation_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_screenlockEnabled_0100
* @tc.name off_screenlockEnabled
* @tc.desc Remove the receives of screenlockEnabled
*/
it('Miscservices_ScreenLock_ScreenLock_screenlockEnabled_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_screenlockEnabled_0100 start*************");
try {
screenLock.off('screenlockEnabled', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_screenlockEnabled_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_screenlockEnabled_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_beginSleep_0100
* @tc.name off_beginSleep
* @tc.desc Remove the receives of beginSleep
*/
it('Miscservices_ScreenLock_ScreenLock_beginSleep_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_beginSleep_0100 start*************");
try {
screenLock.off('beginSleep', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_beginSleep_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_beginSleep_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_endSleep_0100
* @tc.name off_endSleep
* @tc.desc Remove the receives of endSleep
*/
it('Miscservices_ScreenLock_ScreenLock_endSleep_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_endSleep_0100 start*************");
try {
screenLock.off('endSleep', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_endSleep_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_endSleep_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_changeUser_0100
* @tc.name off_changeUser
* @tc.desc Remove the receives of changeUser
*/
it('Miscservices_ScreenLock_ScreenLock_changeUser_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_changeUser_0100 start*************");
try {
screenLock.off('changeUser', (error) => {
if (error) {
expect().assertFail();
} else {
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_changeUser_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_changeUser_0100 end*************");
});
/**
* @tc.number Miscservices_ScreenLock_ScreenLock_sendScreenLockEvent_0100
* @tc.name sendScreenLockEvent
* @tc.desc screenlockAPP send event to sendScreenLockEvent
*/
it('Miscservices_ScreenLock_ScreenLock_sendScreenLockEvent_0100', 0, async function (done) {
console.log("************* Miscservices_ScreenLock_ScreenLock_sendScreenLockEvent_0100 start*************");
try {
screenLock.sendScreenLockEvent('clock', 1000, (error, result) => {
if (error) {
expect().assertFail();
} else {
console.log("Miscservices_ScreenLock_ScreenLock_sendScreenLockEvent_0100 success " + JSON.stringify(result));
expect(true).assertTrue();
}
})
} catch (error) {
console.log("Miscservices_ScreenLock_ScreenLock_sendScreenLockEvent_0100 error " + JSON.stringify(error));
expect(true).assertTrue();
}
done();
console.log("************* Miscservices_ScreenLock_ScreenLock_sendScreenLockEvent_0100 end*************");
});
console.log("************* screenLock Test end*************");
})
}
}
\ No newline at end of file
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
浏览文件 @
7f8f6a67
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录