提交 23b25599 编写于 作者: O openharmony_ci 提交者: Gitee

!1209 修改createTimer接口

Merge pull request !1209 from guduhanyan/master
......@@ -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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.createTimer 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.createTimer(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.
先完成此消息的编辑!
想要评论请 注册