| 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 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
| 6 | 6 |
| 7 import '../metatest.dart'; | 7 import '../metatest.dart'; |
| 8 import '../utils.dart'; | 8 import '../utils.dart'; |
| 9 | 9 |
| 10 void main() { | 10 void main(List<String> args, message) { |
| 11 metaTestInit(message); |
| 12 |
| 11 setUpTimeout(); | 13 setUpTimeout(); |
| 12 | 14 |
| 13 expectTestsPass('currentSchedule.state starts out as SET_UP', () { | 15 expectTestsPass('currentSchedule.state starts out as SET_UP', () { |
| 14 test('test', () { | 16 test('test', () { |
| 15 expect(currentSchedule.state, equals(ScheduleState.SET_UP)); | 17 expect(currentSchedule.state, equals(ScheduleState.SET_UP)); |
| 16 }); | 18 }); |
| 17 }); | 19 }); |
| 18 | 20 |
| 19 expectTestsPass('currentSchedule.state is RUNNING in tasks', () { | 21 expectTestsPass('currentSchedule.state is RUNNING in tasks', () { |
| 20 test('test', () { | 22 test('test', () { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 var oldSchedule; | 34 var oldSchedule; |
| 33 test('test 1', () { | 35 test('test 1', () { |
| 34 oldSchedule = currentSchedule; | 36 oldSchedule = currentSchedule; |
| 35 }); | 37 }); |
| 36 | 38 |
| 37 test('test 2', () { | 39 test('test 2', () { |
| 38 expect(oldSchedule.state, equals(ScheduleState.DONE)); | 40 expect(oldSchedule.state, equals(ScheduleState.DONE)); |
| 39 }); | 41 }); |
| 40 }); | 42 }); |
| 41 } | 43 } |
| OLD | NEW |