| 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 lock_file_test; | 5 library lock_file_test; |
| 6 | 6 |
| 7 import 'package:pub/src/ascii_tree.dart' as tree; | 7 import 'package:pub/src/ascii_tree.dart' as tree; |
| 8 import 'package:pub/src/utils.dart'; | 8 import 'package:pub/src/utils.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| 11 main() { | 11 main() { |
| 12 runningAsTest = true; | |
| 13 | |
| 14 group('tree.fromFiles', () { | 12 group('tree.fromFiles', () { |
| 15 test('no files', () { | 13 test('no files', () { |
| 16 expect(tree.fromFiles([]), equals("")); | 14 expect(tree.fromFiles([]), equals("")); |
| 17 }); | 15 }); |
| 18 | 16 |
| 19 test('up to ten files in one directory are shown', () { | 17 test('up to ten files in one directory are shown', () { |
| 20 var files = [ | 18 var files = [ |
| 21 "dir/a.dart", | 19 "dir/a.dart", |
| 22 "dir/b.dart", | 20 "dir/b.dart", |
| 23 "dir/c.dart", | 21 "dir/c.dart", |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 |-- g.dart | 236 |-- g.dart |
| 239 |-- h.dart | 237 |-- h.dart |
| 240 |-- i.dart | 238 |-- i.dart |
| 241 |-- j.dart | 239 |-- j.dart |
| 242 |-- k.dart | 240 |-- k.dart |
| 243 '-- l.dart | 241 '-- l.dart |
| 244 """)); | 242 """)); |
| 245 }); | 243 }); |
| 246 | 244 |
| 247 } | 245 } |
| OLD | NEW |