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() {
}
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
...
...
@@ -27,1081 +27,6 @@ import {
describe
(
"
TimeTest
"
,
function
()
{
console
.
log
(
"
start################################start
"
);
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0100
* @tc.name Test systemTime.setTimezone timezone = 'Antarctica/McMurdo'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test1
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0100 start
"
);
var
timezone
=
"
Antarctica/McMurdo
"
;
console
.
log
(
"
f_test1: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test1: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test1: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0100 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0200
* @tc.name Test systemTime.setTimezone timezone = 'America/Argentina/Buenos_Aires'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test2
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0200 start
"
);
var
timezone
=
"
America/Argentina/Buenos_Aires
"
;
console
.
log
(
"
f_test2: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test2: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test2: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0200 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0300
* @tc.name Test systemTime.setTimezone timezone = 'Australia/Sydney'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test3
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0300 start
"
);
var
timezone
=
"
Australia/Sydney
"
;
console
.
log
(
"
f_test3: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test3: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test3: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0300 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0400
* @tc.name Test systemTime.setTimezone timezone = 'America/Noronha'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test4
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0400 start
"
);
var
timezone
=
"
America/Noronha
"
;
console
.
log
(
"
f_test4: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test4: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test4: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0400 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0500
* @tc.name Test systemTime.setTimezone timezone = 'Beijing, China'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test5
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0500 start
"
);
var
timezone
=
"
America/St_Johns
"
;
console
.
log
(
"
f_test5: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test5: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test5: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0500 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0600
* @tc.name Test systemTime.setTimezone timezone = 'Africa/Kinshasa'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test6
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0600 start
"
);
var
timezone
=
"
Africa/Kinshasa
"
;
console
.
log
(
"
f_test6: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test6: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test6: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0600 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0700
* @tc.name Test systemTime.setTimezone timezone = 'America/Santiago'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test7
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0700 start
"
);
var
timezone
=
"
America/Santiago
"
;
console
.
log
(
"
f_test7: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test7: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test7: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0700 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0800
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Shanghai'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test8
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0800 start
"
);
var
timezone
=
"
Asia/Shanghai
"
;
console
.
log
(
"
f_test8: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test8: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test8: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0800 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_0900
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Nicosia'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test9
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0900 start
"
);
var
timezone
=
"
Asia/Nicosia
"
;
console
.
log
(
"
f_test9: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test9: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test9: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_0900 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1000
* @tc.name Test systemTime.setTimezone timezone = 'Europe/Berlin'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test10
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1000 start
"
);
var
timezone
=
"
Europe/Berlin
"
;
console
.
log
(
"
f_test10: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test10: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test10: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1000 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1100
* @tc.name Test systemTime.setTimezone timezone = 'America/Guayaquil'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test11
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1100 start
"
);
var
timezone
=
"
America/Guayaquil
"
;
console
.
log
(
"
f_test11: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test11: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test11: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1100 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1200
* @tc.name Test systemTime.setTimezone timezone = 'Europe/Madrid'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test12
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1200 start
"
);
var
timezone
=
"
Europe/Madrid
"
;
console
.
log
(
"
f_test12: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test12: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test12: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1200 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1300
* @tc.name Test systemTime.setTimezone timezone = 'Pacific/Pohnpei'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test13
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1300 start
"
);
var
timezone
=
"
Pacific/Pohnpei
"
;
console
.
log
(
"
f_test13: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test13: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test13: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1300 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1400
* @tc.name Test systemTime.setTimezone timezone = 'America/Godthab'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test14
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1400 start
"
);
var
timezone
=
"
America/Godthab
"
;
console
.
log
(
"
f_test14: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test14: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test14: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1400 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1500
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Jakarta'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test15
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1500 start
"
);
var
timezone
=
"
Asia/Jakarta
"
;
console
.
log
(
"
f_test15: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test15: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test15: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1500 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1600
* @tc.name Test systemTime.setTimezone timezone = 'Pacific/Tarawa'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test16
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1600 start
"
);
var
timezone
=
"
Pacific/Tarawa
"
;
console
.
log
(
"
f_test16: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test16: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test16: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1600 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1700
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Almaty'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test17
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1700 start
"
);
var
timezone
=
"
Asia/Almaty
"
;
console
.
log
(
"
f_test17: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test17: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test17: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1700 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1800
* @tc.name Test systemTime.setTimezone timezone = 'Pacific/Majuro'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test18
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1800 start
"
);
var
timezone
=
"
Pacific/Majuro
"
;
console
.
log
(
"
f_test18: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test18: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test18: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1800 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_1900
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Ulaanbaatar'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test19
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1900 start
"
);
var
timezone
=
"
Asia/Ulaanbaatar
"
;
console
.
log
(
"
f_test19: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test19: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test19: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_1900 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2000
* @tc.name Test systemTime.setTimezone timezone = 'America/Mexico_City'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test20
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2000 start
"
);
var
timezone
=
"
America/Mexico_City
"
;
console
.
log
(
"
f_test20: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test20: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test20: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2000 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2100
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Kuala_Lumpur'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test21
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2100 start
"
);
var
timezone
=
"
Asia/Kuala_Lumpur
"
;
console
.
log
(
"
f_test21: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test21: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test21: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2100 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2200
* @tc.name Test systemTime.setTimezone timezone = 'Pacific/Auckland'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test22
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2200 start
"
);
var
timezone
=
"
Pacific/Auckland
"
;
console
.
log
(
"
f_test22: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test22: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test22: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2200 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2300
* @tc.name Test systemTime.setTimezone timezone = 'Pacific/Tahiti'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test23
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2300 start
"
);
var
timezone
=
"
Pacific/Tahiti
"
;
console
.
log
(
"
f_test23: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test23: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test23: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2300 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2400
* @tc.name Test systemTime.setTimezone timezone = 'Pacific/Port_Moresby'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test24
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2400 start
"
);
var
timezone
=
"
Pacific/Port_Moresby
"
;
console
.
log
(
"
f_test24: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test24: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test24: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2400 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2500
* @tc.name Test systemTime.setTimezone timezone = 'Asia/Gaza'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test25
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2500 start
"
);
var
timezone
=
"
Asia/Gaza
"
;
console
.
log
(
"
f_test25: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test25: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test25: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2500 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTimezone_JS_API_2600
* @tc.name Test systemTime.setTimezone timezone = 'Europe/Lisbon'
* @tc.desc Test systemTime_setTimezone API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTimezone_test26
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2600 start
"
);
var
timezone
=
"
Europe/Lisbon
"
;
console
.
log
(
"
f_test26: setTimezone =
"
+
timezone
);
systemTime
.
setTimezone
(
timezone
).
then
(()
=>
{
console
.
log
(
"
f_test26: setTimezone promise
"
);
systemTime
.
getTimezone
().
then
((
data
)
=>
{
console
.
log
(
"
f_test26: getTimezone data =
"
+
data
);
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTimezone_JS_API_2600 end
"
);
done
();
});
});
});
/**
* @tc.number SUB_systemTime_setTime_JS_API_0100
* @tc.name Test systemTime.setTime time = 123235423411
* @tc.desc Test systemTime_setTime API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTime_test1
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0100 start1
"
);
var
time
=
123235423411
;
console
.
log
(
"
f_setTime1: setTime =
"
+
time
);
systemTime
.
setTime
(
time
).
then
(()
=>
{
console
.
log
(
"
f_setTime1: setTime promise
"
);
systemTime
.
getCurrentTime
(
true
).
then
((
data
)
=>
{
console
.
log
(
"
f_setTime1: getCurrentTime data =
"
+
data
);
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0100 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setTime_JS_API_0200
* @tc.name Test systemTime.setTime time = 1
* @tc.desc Test systemTime_setTime API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTime_test2
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0200 start
"
);
var
time
=
1
;
console
.
log
(
"
f_setTime2: setTime =
"
+
time
);
systemTime
.
setTime
(
time
).
then
(()
=>
{
console
.
log
(
"
f_setTime2: setTime promise
"
);
systemTime
.
getCurrentTime
(
true
).
then
((
data
)
=>
{
console
.
log
(
"
f_setTime2: getCurrentTime data =
"
+
data
);
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0200 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setTime_JS_API_0300
* @tc.name Test systemTime.setTime time = 115230
* @tc.desc Test systemTime_setTime API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTime_test3
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0300 start
"
);
var
time
=
115230
;
console
.
log
(
"
f_setTime3: setTime =
"
+
time
);
systemTime
.
setTime
(
time
).
then
(()
=>
{
console
.
log
(
"
f_setTime3: setTime promise
"
);
systemTime
.
getCurrentTime
(
true
).
then
((
data
)
=>
{
console
.
log
(
"
f_setTime3: getCurrentTime data =
"
+
data
);
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0300 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setTime_JS_API_0400
* @tc.name Test systemTime.setTime time = 6666666
* @tc.desc Test systemTime_setTime API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setTime_test4
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0400 start
"
);
var
time
=
118666
;
console
.
log
(
"
f_setTime4: setTime =
"
+
time
);
systemTime
.
setTime
(
time
).
then
(()
=>
{
console
.
log
(
"
f_setTime4: setTime promise
"
);
systemTime
.
getCurrentTime
(
true
).
then
((
data
)
=>
{
console
.
log
(
"
f_setTime4: getCurrentTime data =
"
+
data
);
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setTime_JS_API_0400 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0100
* @tc.name Test systemTime.setDate date = new Date()
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test1
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0100 start
"
);
var
date
=
new
Date
();
console
.
log
(
"
f_setDate1: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate1: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate1: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0100 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0200
* @tc.name Test systemTime.setDate date = new Date(2022,1,1)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test2
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0200 startaa
"
);
var
date
=
new
Date
(
2022
,
1
,
1
);
console
.
log
(
"
f_setDate2: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate2: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate2: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0200 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0300
* @tc.name Test systemTime.setDate date = new Date(2022,1,15)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test3
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0300 startaa
"
);
var
date
=
new
Date
(
2022
,
1
,
15
);
console
.
log
(
"
f_setDate3: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate3: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate3: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0300 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0400
* @tc.name Test systemTime.setDate date = new Date(2022,1,31)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test4
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0400 start
"
);
var
date
=
new
Date
(
2022
,
1
,
31
);
console
.
log
(
"
f_setDate4: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate4: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate4: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0400 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0500
* @tc.name Test systemTime.setDate date = new Date(2022,2,1)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test5
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0500 start
"
);
var
date
=
new
Date
(
2022
,
2
,
1
);
console
.
log
(
"
f_setDate5: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate5: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate5: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0500 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0600
* @tc.name Test systemTime.setDate date = new Date(2022,2,28)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test6
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0600 start
"
);
var
date
=
new
Date
(
2022
,
2
,
28
);
console
.
log
(
"
f_setDate6: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate6: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate6: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0600 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0700
* @tc.name Test systemTime.setDate date = new Date(2040,2,28)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test7
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0700 start
"
);
var
date
=
new
Date
(
2040
,
2
,
29
);
console
.
log
(
"
f_setDate7: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate7: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate7: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0700 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0800
* @tc.name Test systemTime.setDate date = new Date(2040,2,29)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test8
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0800 start
"
);
var
date
=
new
Date
(
2040
,
2
,
29
);
console
.
log
(
"
f_setDate8: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate8: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate8: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0800 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_0900
* @tc.name Test systemTime.setDate date = new Date(2022,6,30)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test9
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0900 start
"
);
var
date
=
new
Date
(
2022
,
6
,
30
);
console
.
log
(
"
f_setDate9: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate9: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate9: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_0900 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_1000
* @tc.name Test systemTime.setDate date = new Date(2022,7,31)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test10
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_1000 start
"
);
var
date
=
new
Date
(
2022
,
7
,
31
);
console
.
log
(
"
f_setDate10: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate10: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate10: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_1000 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_1100
* @tc.name Test systemTime.setDate date = new Date(2022,12,31)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test11
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_1100 start
"
);
var
date
=
new
Date
(
2022
,
12
,
31
);
console
.
log
(
"
f_setDate11: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate11: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate11: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_1100 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_setDate_JS_API_1200
* @tc.name Test systemTime.setDate date = new Date(2022,13,1)
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
"
systemTime_setDate_test12
"
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_systemTime_setDate_JS_API_1200 start
"
);
var
date
=
new
Date
(
2022
,
13
,
1
);
console
.
log
(
"
f_setDate12: setDate =
"
+
date
.
toLocaleDateString
());
systemTime
.
setDate
(
date
).
then
(()
=>
{
console
.
log
(
"
f_setDate12: setDate promise
"
);
systemTime
.
getDate
().
then
((
data
)
=>
{
console
.
log
(
"
f_setDate12: getDate data =
"
+
data
.
toLocaleDateString
());
});
});
expect
(
true
).
assertTrue
();
console
.
log
(
"
SUB_systemTime_setDate_JS_API_1200 end
"
);
done
();
});
/**
* @tc.number SUB_systemTime_getRealActiveTime_JS_API_0100
* @tc.name Test systemTime.getRealActiveTime
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录