Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
23b25599
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看板
提交
23b25599
编写于
11月 27, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 27, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1209 修改createTimer接口
Merge pull request !1209 from guduhanyan/master
上级
72172efa
acb56198
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
56 addition
and
56 deletion
+56
-56
miscservices/TimerTest_js/src/main/js/default/test/SystemTimerJsunit.test.js
...est_js/src/main/js/default/test/SystemTimerJsunit.test.js
+56
-56
未找到文件。
miscservices/TimerTest_js/src/main/js/default/test/SystemTimerJsunit.test.js
浏览文件 @
23b25599
...
...
@@ -22,7 +22,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0100
* @tc.name Test systemTimer.Timer type = TIMER_TYPE_REALTIME
* @tc.name Test systemTimer.
create
Timer type = TIMER_TYPE_REALTIME
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -36,7 +36,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -55,7 +55,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0200
* @tc.name Test systemTimer.Timer type = TIMER_TYPE_REALTIME_WAKEUP
* @tc.name Test systemTimer.
create
Timer type = TIMER_TYPE_REALTIME_WAKEUP
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -69,7 +69,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -88,7 +88,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0300
* @tc.name Test systemTimer.Timer type = TIMER_TYPE_EXACT
* @tc.name Test systemTimer.
create
Timer type = TIMER_TYPE_EXACT
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -102,7 +102,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -121,7 +121,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0400
* @tc.name Test systemTimer.Timer type = TIMER_TYPE_REALTIME
* @tc.name Test systemTimer.
create
Timer type = TIMER_TYPE_REALTIME
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -135,7 +135,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -154,7 +154,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0500
* @tc.name Test systemTimer.Timer triggerTime = 0
* @tc.name Test systemTimer.
create
Timer triggerTime = 0
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -168,7 +168,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -187,7 +187,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0600
* @tc.name Test systemTimer.Timer triggerTime = 5000
* @tc.name Test systemTimer.
create
Timer triggerTime = 5000
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -201,7 +201,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -220,7 +220,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0700
* @tc.name Test systemTimer.Timer triggerTime = Number.MAX_VALUE/2
* @tc.name Test systemTimer.
create
Timer triggerTime = Number.MAX_VALUE/2
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -234,7 +234,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -253,7 +253,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0800
* @tc.name Test systemTimer.Timer triggerTime = Number.MAX_VALUE-1
* @tc.name Test systemTimer.
create
Timer triggerTime = Number.MAX_VALUE-1
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -267,7 +267,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -286,7 +286,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_0900
* @tc.name Test systemTimer.Timer triggerTime = Number.MAX_VALUE
* @tc.name Test systemTimer.
create
Timer triggerTime = Number.MAX_VALUE
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -300,7 +300,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -319,7 +319,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1000
* @tc.name Test systemTimer.Timer repeat = true
* @tc.name Test systemTimer.
create
Timer repeat = true
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -333,7 +333,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -352,7 +352,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1100
* @tc.name Test systemTimer.Timer persistent = true
* @tc.name Test systemTimer.
create
Timer persistent = true
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -366,7 +366,7 @@ describe('TimerTest', function() {
persistent
:
true
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -385,7 +385,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1200
* @tc.name Test systemTimer.Timer repeat,persistent = true
* @tc.name Test systemTimer.
create
Timer repeat,persistent = true
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -399,7 +399,7 @@ describe('TimerTest', function() {
persistent
:
true
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -418,7 +418,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1300
* @tc.name Test systemTimer.Timer create,start,stop,destroy 1000 timers
* @tc.name Test systemTimer.
create
Timer create,start,stop,destroy 1000 timers
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -434,7 +434,7 @@ describe('TimerTest', function() {
for
(
var
index
=
0
;
index
<
1000
;
index
++
)
{
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -454,7 +454,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1400
* @tc.name Test systemTimer.Timer interval = 0
* @tc.name Test systemTimer.
create
Timer interval = 0
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -469,7 +469,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -488,7 +488,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1500
* @tc.name Test systemTimer.Timer interval = 5000
* @tc.name Test systemTimer.
create
Timer interval = 5000
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -503,7 +503,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -522,7 +522,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1600
* @tc.name Test systemTimer.Timer interval = Number.MAX_VALUE/2
* @tc.name Test systemTimer.
create
Timer interval = Number.MAX_VALUE/2
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -537,7 +537,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -556,7 +556,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1700
* @tc.name Test systemTimer.Timer interval = Number.MAX_VALUE-1
* @tc.name Test systemTimer.
create
Timer interval = Number.MAX_VALUE-1
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -571,7 +571,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -590,7 +590,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1800
* @tc.name Test systemTimer.Timer interval = Number.MAX_VALUE
* @tc.name Test systemTimer.
create
Timer interval = Number.MAX_VALUE
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -605,7 +605,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -624,7 +624,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_1900
* @tc.name Test systemTimer.Timer WantAgent
* @tc.name Test systemTimer.
create
Timer WantAgent
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -640,7 +640,7 @@ describe('TimerTest', function() {
//wantAgent:WantAgent
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -659,7 +659,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2000
* @tc.name Test systemTimer.Timer Called back when the timer goes off.
* @tc.name Test systemTimer.
create
Timer Called back when the timer goes off.
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -675,7 +675,7 @@ describe('TimerTest', function() {
callback
:
callbackFunction
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -694,7 +694,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2100
* @tc.name Test systemTimer.Timer start a not exist timer
* @tc.name Test systemTimer.
create
Timer start a not exist timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -708,7 +708,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start a not exist timer
"
)
...
...
@@ -723,7 +723,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2200
* @tc.name Test systemTimer.Timer stop a not exist timer
* @tc.name Test systemTimer.
create
Timer stop a not exist timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -737,7 +737,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -760,7 +760,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2300
* @tc.name Test systemTimer.Timer destroy a not exist timer
* @tc.name Test systemTimer.
create
Timer destroy a not exist timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -774,7 +774,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -797,7 +797,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2400
* @tc.name Test systemTimer.Timer stop a not started timer
* @tc.name Test systemTimer.
create
Timer stop a not started timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -811,7 +811,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
stop a not started timer
"
)
...
...
@@ -826,7 +826,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2500
* @tc.name Test systemTimer.Timer destroy a started timer
* @tc.name Test systemTimer.
create
Timer destroy a started timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -840,7 +840,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -855,7 +855,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2600
* @tc.name Test systemTimer.Timer repeat to start a timer
* @tc.name Test systemTimer.
create
Timer repeat to start a timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -869,7 +869,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -892,7 +892,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2700
* @tc.name Test systemTimer.Timer repeat to stop a timer
* @tc.name Test systemTimer.
create
Timer repeat to stop a timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -906,7 +906,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
@@ -929,7 +929,7 @@ describe('TimerTest', function() {
/**
* @tc.number SUB_systemTimer_Timer_JS_API_2800
* @tc.name Test systemTimer.Timer repeat to destroy a timer
* @tc.name Test systemTimer.
create
Timer repeat to destroy a timer
* @tc.desc Test systemTimer_Timer API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
...
...
@@ -943,7 +943,7 @@ describe('TimerTest', function() {
persistent
:
false
}
console
.
log
(
"
create timer
"
)
let
timer
=
systemTimer
.
Timer
(
options
)
let
timer
=
systemTimer
.
create
Timer
(
options
)
expect
(
parseInt
(
timer
)
==
parseFloat
(
timer
)).
assertEqual
(
true
)
console
.
log
(
"
start timer
"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录