Skip to content

Commit 42cea73

Browse files
committed
Add scheduler tests
1 parent 0b3f468 commit 42cea73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/js-tests/src/SchedulerTest/SchedulerTest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,10 @@ var unScheduleAndRepeatTest = SchedulerTestLayer.extend({
662662

663663
onEnter: function(){
664664
this._super();
665-
cc.log("start schedule 'repeat': run once and repeat 4");
666-
this.schedule(this.repeat, 1, 4);
665+
cc.log("start schedule 'repeat': run once and repeat 4 times");
666+
this.schedule(this.repeat, 0.5, 4);
667667
cc.log("start schedule 'forever': repeat forever (stop in 8s)");
668-
this.schedule(this.forever, 1);
668+
this.schedule(this.forever, 0.5);
669669
this.schedule(function(){
670670
cc.log("stop the 'forever'");
671671
this.unschedule(this.forever);

0 commit comments

Comments
 (0)