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 'package:metatest/metatest.dart'; | |
13 import 'utils.dart'; | 12 import 'utils.dart'; |
14 | 13 |
15 void main() { | 14 void main() { |
16 expectTestPasses("directory().create() creates a directory and its contents", | 15 expectTestPasses("directory().create() creates a directory and its contents", |
17 () { | 16 () { |
18 scheduleSandbox(); | 17 scheduleSandbox(); |
19 | 18 |
20 d.dir('dir', [ | 19 d.dir('dir', [ |
21 d.dir('subdir', [ | 20 d.dir('subdir', [ |
22 d.file('subfile1.txt', 'subcontents1'), | 21 d.file('subfile1.txt', 'subcontents1'), |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 "descriptor", path.join(sandbox, 'dir')); | 380 "descriptor", path.join(sandbox, 'dir')); |
382 expect(descriptor, isDirectoryDescriptor('descriptor', [ | 381 expect(descriptor, isDirectoryDescriptor('descriptor', [ |
383 isDirectoryDescriptor('subdir', [ | 382 isDirectoryDescriptor('subdir', [ |
384 isFileDescriptor('subfile1.txt', 'subcontents1') | 383 isFileDescriptor('subfile1.txt', 'subcontents1') |
385 ]), | 384 ]), |
386 isFileDescriptor('file1.txt', 'contents1') | 385 isFileDescriptor('file1.txt', 'contents1') |
387 ])); | 386 ])); |
388 }); | 387 }); |
389 }); | 388 }); |
390 } | 389 } |
OLD | NEW |