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 | 4 |
5 library multiple_timer_test; | 5 library multiple_timer_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import '../../../pkg/unittest/lib/unittest.dart'; | 8 import '../../../pkg/unittest/lib/unittest.dart'; |
9 | 9 |
10 const Duration TIMEOUT1 = const Duration(seconds: 1); | 10 const Duration TIMEOUT1 = const Duration(seconds: 1); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 _order = new List<int>(4); | 58 _order = new List<int>(4); |
59 _order[0] = 2; | 59 _order[0] = 2; |
60 _order[1] = 0; | 60 _order[1] = 0; |
61 _order[2] = 3; | 61 _order[2] = 3; |
62 _order[3] = 1; | 62 _order[3] = 1; |
63 _message = 0; | 63 _message = 0; |
64 | 64 |
65 _stopwatch1.start(); | 65 _stopwatch1.start(); |
66 new Timer(TIMEOUT1, expectAsync0(timeoutHandler1)); | 66 new Timer(TIMEOUT1, expectAsync(timeoutHandler1)); |
67 _stopwatch2.start(); | 67 _stopwatch2.start(); |
68 new Timer(TIMEOUT2, expectAsync0(timeoutHandler2)); | 68 new Timer(TIMEOUT2, expectAsync(timeoutHandler2)); |
69 _stopwatch3.start(); | 69 _stopwatch3.start(); |
70 new Timer(TIMEOUT3, expectAsync0(timeoutHandler3)); | 70 new Timer(TIMEOUT3, expectAsync(timeoutHandler3)); |
71 _stopwatch4.start(); | 71 _stopwatch4.start(); |
72 new Timer(TIMEOUT4, expectAsync0(timeoutHandler4)); | 72 new Timer(TIMEOUT4, expectAsync(timeoutHandler4)); |
73 }); | 73 }); |
74 } | 74 } |
OLD | NEW |