| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 4 |
| 5 #import("dart:io"); |
| 6 |
| 5 class MultipleTimerTest { | 7 class MultipleTimerTest { |
| 6 | 8 |
| 7 static final int TIMEOUT1 = 1000; | 9 static final int TIMEOUT1 = 1000; |
| 8 static final int TIMEOUT2 = 2000; | 10 static final int TIMEOUT2 = 2000; |
| 9 static final int TIMEOUT3 = 500; | 11 static final int TIMEOUT3 = 500; |
| 10 static final int TIMEOUT4 = 1500; | 12 static final int TIMEOUT4 = 1500; |
| 11 | 13 |
| 12 static void testMultipleTimer() { | 14 static void testMultipleTimer() { |
| 13 | 15 |
| 14 void timeoutHandler1(Timer timer) { | 16 void timeoutHandler1(Timer timer) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 static int _startTime2; | 66 static int _startTime2; |
| 65 static int _startTime3; | 67 static int _startTime3; |
| 66 static int _startTime4; | 68 static int _startTime4; |
| 67 static List<int> _order; | 69 static List<int> _order; |
| 68 static int _message; | 70 static int _message; |
| 69 } | 71 } |
| 70 | 72 |
| 71 main() { | 73 main() { |
| 72 MultipleTimerTest.testMain(); | 74 MultipleTimerTest.testMain(); |
| 73 } | 75 } |
| OLD | NEW |