| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library packages_list_files_test; | 5 library packages_list_files_test; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 8 import 'package:pub/src/entrypoint.dart'; | 8 import 'package:pub/src/entrypoint.dart'; |
| 9 import 'package:pub/src/io.dart'; | 9 import 'package:pub/src/io.dart'; |
| 10 import 'package:pub/src/system_cache.dart'; | 10 import 'package:pub/src/system_cache.dart'; |
| 11 import 'package:scheduled_test/scheduled_test.dart'; | 11 import 'package:scheduled_test/scheduled_test.dart'; |
| 12 | 12 |
| 13 import 'descriptor.dart' as d; | 13 import 'descriptor.dart' as d; |
| 14 import 'test_pub.dart'; | 14 import 'test_pub.dart'; |
| 15 | 15 |
| 16 String root; | 16 String root; |
| 17 Entrypoint entrypoint; | 17 Entrypoint entrypoint; |
| 18 | 18 |
| 19 main() { | 19 main() { |
| 20 initConfig(); | |
| 21 | |
| 22 group('not in a git repo', () { | 20 group('not in a git repo', () { |
| 23 setUp(() { | 21 setUp(() { |
| 24 d.appDir().create(); | 22 d.appDir().create(); |
| 25 scheduleEntrypoint(); | 23 scheduleEntrypoint(); |
| 26 }); | 24 }); |
| 27 | 25 |
| 28 | 26 |
| 29 integration('lists files recursively', () { | 27 integration('lists files recursively', () { |
| 30 d.dir(appPath, [ | 28 d.dir(appPath, [ |
| 31 d.file('file1.txt', 'contents'), | 29 d.file('file1.txt', 'contents'), |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 unorderedEquals([ | 222 unorderedEquals([ |
| 225 path.join(root, 'packages', 'subfile1.txt'), | 223 path.join(root, 'packages', 'subfile1.txt'), |
| 226 path.join(root, 'packages', 'subfile2.txt'), | 224 path.join(root, 'packages', 'subfile2.txt'), |
| 227 path.join(root, 'packages', 'subsubdir', 'subsubfile1.txt'), | 225 path.join(root, 'packages', 'subsubdir', 'subsubfile1.txt'), |
| 228 path.join(root, 'packages', 'subsubdir', 'subsubfile2.txt') | 226 path.join(root, 'packages', 'subsubdir', 'subsubfile2.txt') |
| 229 ])); | 227 ])); |
| 230 }); | 228 }); |
| 231 }); | 229 }); |
| 232 }); | 230 }); |
| 233 } | 231 } |
| OLD | NEW |