| 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:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 8 import 'package:scheduled_test/descriptor.dart' as d; | 8 import 'package:scheduled_test/descriptor.dart' as d; |
| 9 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
| 10 | 10 |
| 11 import '../metatest.dart'; | 11 import '../metatest.dart'; |
| 12 import 'utils.dart'; | 12 import 'utils.dart'; |
| 13 | 13 |
| 14 void main(List<String> args, message) { | 14 void main(_, message) { |
| 15 metaTestInit(message); | 15 initMetatest(message); |
| 16 | 16 |
| 17 setUpTimeout(); | 17 setUpTimeout(); |
| 18 | 18 |
| 19 expectTestsPass("nothing().create() does nothing", () { | 19 expectTestsPass("nothing().create() does nothing", () { |
| 20 test('test', () { | 20 test('test', () { |
| 21 scheduleSandbox(); | 21 scheduleSandbox(); |
| 22 | 22 |
| 23 d.nothing('foo').create(); | 23 d.nothing('foo').create(); |
| 24 | 24 |
| 25 schedule(() { | 25 schedule(() { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 }); | 77 }); |
| 78 | 78 |
| 79 test('test 2', () { | 79 test('test 2', () { |
| 80 expect(errors.single, new isInstanceOf<ScheduleError>()); | 80 expect(errors.single, new isInstanceOf<ScheduleError>()); |
| 81 expect(errors.single.error.toString(), | 81 expect(errors.single.error.toString(), |
| 82 matches(r"^Expected nothing to exist at '[^']+[\\/]dir', but found a " | 82 matches(r"^Expected nothing to exist at '[^']+[\\/]dir', but found a " |
| 83 r"directory\.$")); | 83 r"directory\.$")); |
| 84 }); | 84 }); |
| 85 }, passing: ['test 2']); | 85 }, passing: ['test 2']); |
| 86 } | 86 } |
| OLD | NEW |