| 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'; | 5 import 'dart:async'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 | 7 |
| 8 import 'package:path/path.dart' as path; | 8 import 'package:path/path.dart' as path; |
| 9 import 'package:scheduled_test/descriptor.dart' as d; | 9 import 'package:scheduled_test/descriptor.dart' as d; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| 11 | 11 |
| 12 import '../metatest.dart'; | 12 import 'package:metatest/metatest.dart'; |
| 13 import 'utils.dart'; | 13 import 'utils.dart'; |
| 14 | 14 |
| 15 void main(_, message) { | 15 void main() => initTests(_test); |
| 16 |
| 17 void _test(message) { |
| 16 initMetatest(message); | 18 initMetatest(message); |
| 17 | 19 |
| 18 setUpTimeout(); | 20 setUpTimeout(); |
| 19 | 21 |
| 20 expectTestsPass("directory().create() creates a directory and its contents", | 22 expectTestsPass("directory().create() creates a directory and its contents", |
| 21 () { | 23 () { |
| 22 test('test', () { | 24 test('test', () { |
| 23 scheduleSandbox(); | 25 scheduleSandbox(); |
| 24 | 26 |
| 25 d.dir('dir', [ | 27 d.dir('dir', [ |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 isDirectoryDescriptor('subdir', [ | 433 isDirectoryDescriptor('subdir', [ |
| 432 isFileDescriptor('subfile1.txt', 'subcontents1'), | 434 isFileDescriptor('subfile1.txt', 'subcontents1'), |
| 433 isFileDescriptor('subfile2.txt', 'subcontents2') | 435 isFileDescriptor('subfile2.txt', 'subcontents2') |
| 434 ]), | 436 ]), |
| 435 isFileDescriptor('file1.txt', 'contents1'), | 437 isFileDescriptor('file1.txt', 'contents1'), |
| 436 isFileDescriptor('file2.txt', 'contents2') | 438 isFileDescriptor('file2.txt', 'contents2') |
| 437 ])); | 439 ])); |
| 438 }); | 440 }); |
| 439 }); | 441 }); |
| 440 } | 442 } |
| OLD | NEW |