| 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 io_test; | 5 library io_test; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:pathos/path.dart' as path; | 9 import 'package:pathos/path.dart' as path; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 11 | 11 |
| 12 import '../../pub/io.dart'; | 12 import '../lib/src/io.dart'; |
| 13 import '../../pub/utils.dart'; | 13 import '../lib/src/utils.dart'; |
| 14 import 'test_pub.dart'; | 14 import 'test_pub.dart'; |
| 15 | 15 |
| 16 main() { | 16 main() { |
| 17 initConfig(); | 17 initConfig(); |
| 18 | 18 |
| 19 group('listDir', () { | 19 group('listDir', () { |
| 20 test('lists a simple directory non-recursively', () { | 20 test('lists a simple directory non-recursively', () { |
| 21 expect(withTempDir((temp) { | 21 expect(withTempDir((temp) { |
| 22 writeTextFile(path.join(temp, 'file1.txt'), ''); | 22 writeTextFile(path.join(temp, 'file1.txt'), ''); |
| 23 writeTextFile(path.join(temp, 'file2.txt'), ''); | 23 writeTextFile(path.join(temp, 'file2.txt'), ''); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 var symlink2Path = path.join(temp, "link2.txt"); | 271 var symlink2Path = path.join(temp, "link2.txt"); |
| 272 writeTextFile(targetPath, "contents"); | 272 writeTextFile(targetPath, "contents"); |
| 273 createSymlink(targetPath, symlink1Path); | 273 createSymlink(targetPath, symlink1Path); |
| 274 createSymlink(symlink1Path, symlink2Path); | 274 createSymlink(symlink1Path, symlink2Path); |
| 275 expect(predicate(symlink2Path), equals(forMultiLevelFileSymlink)); | 275 expect(predicate(symlink2Path), equals(forMultiLevelFileSymlink)); |
| 276 }), completes); | 276 }), completes); |
| 277 }); | 277 }); |
| 278 } | 278 } |
| 279 }); | 279 }); |
| 280 } | 280 } |
| OLD | NEW |