Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 #library('timer_repeat_test'); | |
|
kasperl
2012/08/09 06:15:33
Ditto.
Siggi Cherem (dart-lang)
2012/08/09 20:37:15
Done.
| |
| 4 | 5 |
| 5 #import("dart:isolate"); | 6 #import("dart:isolate"); |
| 6 | 7 |
| 7 class TimerRepeatTest { | 8 class TimerRepeatTest { |
| 8 | 9 |
| 9 static final int _TIMEOUT = 500; | 10 static final int _TIMEOUT = 500; |
| 10 static final int _ITERATIONS = 5; | 11 static final int _ITERATIONS = 5; |
| 11 | 12 |
| 12 static void testRepeatTimer() { | 13 static void testRepeatTimer() { |
| 13 | 14 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 32 } | 33 } |
| 33 | 34 |
| 34 static Timer timer; | 35 static Timer timer; |
| 35 static int _startTime; | 36 static int _startTime; |
| 36 static int _iteration; | 37 static int _iteration; |
| 37 } | 38 } |
| 38 | 39 |
| 39 main() { | 40 main() { |
| 40 TimerRepeatTest.testMain(); | 41 TimerRepeatTest.testMain(); |
| 41 } | 42 } |
| OLD | NEW |