提交 6c0be0c9 编写于 作者: Z zwx1016320

del tow tests

Signed-off-by: Nzwx1016320 <zhangyushuai1@huawei-partners.com>
上级 3f9acbad
...@@ -306,28 +306,6 @@ export default function systemTimeJsunit() { ...@@ -306,28 +306,6 @@ export default function systemTimeJsunit() {
}; };
}); });
/**
* @tc.number SUB_systemTime_setDate_JS_API_0100
* @tc.name Test systemTime.setDate Invalid value
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_systemTime_setDate_JS_API_0100', 0, async function (done) {
console.info("====>SUB_systemTime_setDate_JS_API_0100 start");
let data = new Date("October 13, 2020 11:13:00");
systemTime.setDate(data).then(data => {
console.info("====>SUB_systemTime_setDate_JS_API_0100 data " + data);
expect().assertFail();
done();
}).catch(error => {
console.info("====>SUB_systemTime_setDate_JS_API_0100 error " + error);
expect(true).assertTrue();
done();
});
});
/** /**
* @tc.number SUB_systemTime_setDate_JS_API_0200 * @tc.number SUB_systemTime_setDate_JS_API_0200
* @tc.name Test systemTime.setDate Invalid value * @tc.name Test systemTime.setDate Invalid value
...@@ -349,35 +327,6 @@ export default function systemTimeJsunit() { ...@@ -349,35 +327,6 @@ export default function systemTimeJsunit() {
}); });
}); });
/**
* @tc.number SUB_systemTime_setDate_JS_API_0300
* @tc.name Test systemTime.setDate Invalid value
* @tc.desc Test systemTime_setDate API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_systemTime_setDate_JS_API_0300', 0, async function (done) {
console.info("====>SUB_systemTime_setDate_JS_API_0300 start");
let data = new Date("October 13, 2020 11:13:00");
systemTime.setDate(data, (error, data) => {
try {
if(error){
console.info("====>SUB_systemTime_setDate_JS_API_0300 error " + error);
expect(true).assertTrue();
done();
}else{
console.info("====>SUB_systemTime_setDate_JS_API_0300 data " + data);
expect().assertFail();
done();
}
} catch (error) {
console.info("====>SUB_systemTime_setDate_JS_API_0300 catch error " + error);
done();
}
});
});
/** /**
* @tc.number SUB_systemTime_setDate_JS_API_0400 * @tc.number SUB_systemTime_setDate_JS_API_0400
* @tc.name Test systemTime.setDate true value * @tc.name Test systemTime.setDate true value
...@@ -388,8 +337,8 @@ export default function systemTimeJsunit() { ...@@ -388,8 +337,8 @@ export default function systemTimeJsunit() {
*/ */
it('SUB_systemTime_setDate_JS_API_0400', 0, async function (done) { it('SUB_systemTime_setDate_JS_API_0400', 0, async function (done) {
console.info("====>SUB_systemTime_setDate_JS_API_0400 start"); console.info("====>SUB_systemTime_setDate_JS_API_0400 start");
let data = new Date("Tue Oct 13 2020 11:13:00 GMT+0800"); let date = new Date("Tue Oct 13 2020 11:13:00 GMT+0800");
systemTime.setDate(data, (error, data) => { systemTime.setDate(date, (error, data) => {
try { try {
if(error){ if(error){
console.info("====>SUB_systemTime_setDate_JS_API_0400 setDate fail: " + JSON.stringify(error)); console.info("====>SUB_systemTime_setDate_JS_API_0400 setDate fail: " + JSON.stringify(error));
...@@ -426,8 +375,8 @@ export default function systemTimeJsunit() { ...@@ -426,8 +375,8 @@ export default function systemTimeJsunit() {
*/ */
it('SUB_systemTime_setDate_JS_API_0500', 0, async function (done) { it('SUB_systemTime_setDate_JS_API_0500', 0, async function (done) {
console.info("====>SUB_systemTime_setDate_JS_API_0500 start"); console.info("====>SUB_systemTime_setDate_JS_API_0500 start");
let data = new Date("Tue Oct 13 2020 11:13:00 GMT+0800"); let date = new Date("Tue Oct 13 2020 11:13:00 GMT+0800");
await systemTime.setDate(data).then( () => { await systemTime.setDate(date).then( () => {
console.info("====>SUB_systemTime_setDate_JS_API_0500 successful "); console.info("====>SUB_systemTime_setDate_JS_API_0500 successful ");
systemTime.getDate().then(async data => { systemTime.getDate().then(async data => {
try { try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册