OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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:async'; | |
6 import 'dart:io'; | |
7 | |
8 import 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
9 | 6 |
10 import '../metatest.dart'; | 7 import '../metatest.dart'; |
11 import '../utils.dart'; | 8 import '../utils.dart'; |
12 | 9 |
13 void main() { | 10 void main() { |
14 setUpTimeout(); | 11 setUpTimeout(); |
15 | 12 |
16 expectTestsPass('currentSchedule.state starts out as SET_UP', () { | 13 expectTestsPass('currentSchedule.state starts out as SET_UP', () { |
17 test('test', () { | 14 test('test', () { |
(...skipping 17 matching lines...) Expand all Loading... |
35 var oldSchedule; | 32 var oldSchedule; |
36 test('test 1', () { | 33 test('test 1', () { |
37 oldSchedule = currentSchedule; | 34 oldSchedule = currentSchedule; |
38 }); | 35 }); |
39 | 36 |
40 test('test 2', () { | 37 test('test 2', () { |
41 expect(oldSchedule.state, equals(ScheduleState.DONE)); | 38 expect(oldSchedule.state, equals(ScheduleState.DONE)); |
42 }); | 39 }); |
43 }); | 40 }); |
44 } | 41 } |
OLD | NEW |