OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'package:path/path.dart' as path; |
| 3 import '../descriptor.dart' as d; |
| 4 import '../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration('replaces a broken "packages" symlink', () { |
| 8 d.dir(appPath, [d.appPubspec(), d.libDir('foo'), d.dir("bin")]).create(); |
| 9 scheduleSymlink("nonexistent", path.join(appPath, "packages")); |
| 10 pubGet(); |
| 11 d.dir( |
| 12 appPath, |
| 13 [ |
| 14 d.dir( |
| 15 "bin", |
| 16 [ |
| 17 d.dir( |
| 18 "packages", |
| 19 [d.dir("myapp", [d.file('foo.dart', 'main() => "foo";')]
)])])]).validate(); |
| 20 }); |
| 21 integration('replaces a broken secondary "packages" symlink', () { |
| 22 d.dir(appPath, [d.appPubspec(), d.libDir('foo'), d.dir("bin")]).create(); |
| 23 scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages")); |
| 24 pubGet(); |
| 25 d.dir( |
| 26 appPath, |
| 27 [ |
| 28 d.dir( |
| 29 "bin", |
| 30 [ |
| 31 d.dir( |
| 32 "packages", |
| 33 [d.dir("myapp", [d.file('foo.dart', 'main() => "foo";')]
)])])]).validate(); |
| 34 }); |
| 35 } |
OLD | NEW |