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:pathos/path.dart' as path; | 7 import 'package:pathos/path.dart' as path; |
8 | 8 |
9 import '../../../lib/src/exit_codes.dart' as exit_codes; | 9 import '../../../lib/src/exit_codes.dart' as exit_codes; |
10 import '../../descriptor.dart' as d; | 10 import '../../descriptor.dart' as d; |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 d.dir(appPath, [ | 28 d.dir(appPath, [ |
29 d.pubspec({ | 29 d.pubspec({ |
30 "name": "myapp", | 30 "name": "myapp", |
31 "dependencies": { | 31 "dependencies": { |
32 "foo": {"path": "../foo"} | 32 "foo": {"path": "../foo"} |
33 } | 33 } |
34 }) | 34 }) |
35 ]).create(); | 35 ]).create(); |
36 | 36 |
37 schedulePub(args: ["install"], | 37 pubInstall(); |
38 output: new RegExp(r"Dependencies installed!$")); | |
39 | 38 |
40 d.dir("moved").create(); | 39 d.dir("moved").create(); |
41 | 40 |
42 // Move the app and package. Since they are still next to each other, it | 41 // Move the app and package. Since they are still next to each other, it |
43 // should still be found. | 42 // should still be found. |
44 scheduleRename("foo", path.join("moved", "foo")); | 43 scheduleRename("foo", path.join("moved", "foo")); |
45 scheduleRename(appPath, path.join("moved", appPath)); | 44 scheduleRename(appPath, path.join("moved", appPath)); |
46 | 45 |
47 d.dir("moved", [ | 46 d.dir("moved", [ |
48 d.dir(packagesPath, [ | 47 d.dir(packagesPath, [ |
49 d.dir("foo", [ | 48 d.dir("foo", [ |
50 d.file("foo.dart", 'main() => "foo";') | 49 d.file("foo.dart", 'main() => "foo";') |
51 ]) | 50 ]) |
52 ]) | 51 ]) |
53 ]).validate(); | 52 ]).validate(); |
54 }); | 53 }); |
55 } | 54 } |
OLD | NEW |