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 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
8 | 8 |
9 import '../../descriptor.dart' as d; | 9 import '../../descriptor.dart' as d; |
10 import '../../test_pub.dart'; | 10 import '../../test_pub.dart'; |
(...skipping 11 matching lines...) Expand all Loading... |
22 d.libDir("foo"), | 22 d.libDir("foo"), |
23 d.libPubspec("foo", "0.0.1") | 23 d.libPubspec("foo", "0.0.1") |
24 ]).create(); | 24 ]).create(); |
25 | 25 |
26 d.dir(appPath, [ | 26 d.dir(appPath, [ |
27 d.appPubspec({ | 27 d.appPubspec({ |
28 "foo": {"path": "../foo"} | 28 "foo": {"path": "../foo"} |
29 }) | 29 }) |
30 ]).create(); | 30 ]).create(); |
31 | 31 |
32 pubGet(); | 32 pubGet(args: ["--packages-dir"]); |
33 | 33 |
34 d.dir("moved").create(); | 34 d.dir("moved").create(); |
35 | 35 |
36 // Move the app and package. Since they are still next to each other, it | 36 // Move the app and package. Since they are still next to each other, it |
37 // should still be found. | 37 // should still be found. |
38 scheduleRename("foo", path.join("moved", "foo")); | 38 scheduleRename("foo", path.join("moved", "foo")); |
39 scheduleRename(appPath, path.join("moved", appPath)); | 39 scheduleRename(appPath, path.join("moved", appPath)); |
40 | 40 |
41 d.dir("moved", [ | 41 d.dir("moved", [ |
42 d.dir(packagesPath, [ | 42 d.dir(packagesPath, [ |
43 d.dir("foo", [ | 43 d.dir("foo", [ |
44 d.file("foo.dart", 'main() => "foo";') | 44 d.file("foo.dart", 'main() => "foo";') |
45 ]) | 45 ]) |
46 ]) | 46 ]) |
47 ]).validate(); | 47 ]).validate(); |
48 }); | 48 }); |
49 } | 49 } |
OLD | NEW |