| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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 d.file. | 3 // BSD-style license that can be found in the LICENSE d.file. |
| 4 | 4 |
| 5 import 'package:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
| 6 | 6 |
| 7 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
| 8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 d.dir(appPath, [ | 31 d.dir(appPath, [ |
| 32 d.appPubspec({ | 32 d.appPubspec({ |
| 33 "foo": {"path": "../foo"}, | 33 "foo": {"path": "../foo"}, |
| 34 "bar": {"path": "../bar"} | 34 "bar": {"path": "../bar"} |
| 35 }) | 35 }) |
| 36 ]).create(); | 36 ]).create(); |
| 37 | 37 |
| 38 d.dir("link").create(); | 38 d.dir("link").create(); |
| 39 scheduleSymlink("shared", path.join("link", "shared")); | 39 scheduleSymlink("shared", path.join("link", "shared")); |
| 40 | 40 |
| 41 pubGet(); | 41 pubGet(args: ["--packages-dir"]); |
| 42 | 42 |
| 43 d.dir(packagesPath, [ | 43 d.dir(packagesPath, [ |
| 44 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), | 44 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), |
| 45 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), | 45 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), |
| 46 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) | 46 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) |
| 47 ]).validate(); | 47 ]).validate(); |
| 48 }); | 48 }); |
| 49 } | 49 } |
| OLD | NEW |