OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 import '../../../../../pkg/path/lib/path.dart' as path; | |
6 | |
7 import '../../test_pub.dart'; | |
8 | |
9 main() { | |
10 initConfig(); | |
11 integration('path dependency with absolute path', () { | |
12 dir('foo', [ | |
13 libDir('foo'), | |
14 libPubspec('foo', '0.0.1') | |
15 ]).scheduleCreate(); | |
16 | |
17 dir(appPath, [ | |
18 pubspec({ | |
19 "name": "myapp", | |
20 "dependencies": { | |
21 "foo": {"path": path.join(sandboxDir, "foo") } | |
nweiz
2013/02/13 00:13:56
Style nit: no space between ")" and "}".
Bob Nystrom
2013/02/13 18:28:36
Done.
| |
22 } | |
23 }) | |
24 ]).scheduleCreate(); | |
25 | |
26 schedulePub(args: ["install"], | |
27 output: new RegExp(r"Dependencies installed!$")); | |
28 | |
29 dir(packagesPath, [ | |
30 dir("foo", [ | |
31 file("foo.dart", 'main() => "foo";') | |
32 ]) | |
33 ]).scheduleValidate(); | |
34 | |
35 // Move the packages directory and ensure the symlink still works. That | |
36 // will validate that we actually created an absolute symlink. | |
37 dir("moved").scheduleCreate(); | |
38 scheduleRename(packagesPath, "moved/packages"); | |
39 | |
40 dir("moved/packages", [ | |
41 dir("foo", [ | |
42 file("foo.dart", 'main() => "foo";') | |
43 ]) | |
44 ]).scheduleValidate(); | |
45 }); | |
46 } | |
OLD | NEW |