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:pathos/path.dart' as path; | 5 import 'package:pathos/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 21 matching lines...) Expand all Loading... |
32 d.dir(appPath, [ | 32 d.dir(appPath, [ |
33 d.pubspec({ | 33 d.pubspec({ |
34 "name": "myapp", | 34 "name": "myapp", |
35 "dependencies": { | 35 "dependencies": { |
36 "foo": {"path": "../foo"}, | 36 "foo": {"path": "../foo"}, |
37 "bar": {"path": "../bar"} | 37 "bar": {"path": "../bar"} |
38 } | 38 } |
39 }) | 39 }) |
40 ]).create(); | 40 ]).create(); |
41 | 41 |
42 schedulePub(args: ["install"], | 42 pubInstall(); |
43 output: new RegExp(r"Dependencies installed!$")); | |
44 | 43 |
45 d.dir(packagesPath, [ | 44 d.dir(packagesPath, [ |
46 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), | 45 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), |
47 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), | 46 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), |
48 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) | 47 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) |
49 ]).validate(); | 48 ]).validate(); |
50 }); | 49 }); |
51 | 50 |
52 integration("shared dependency with paths that normalize the same", () { | 51 integration("shared dependency with paths that normalize the same", () { |
53 d.dir("shared", [ | 52 d.dir("shared", [ |
(...skipping 18 matching lines...) Expand all Loading... |
72 d.dir(appPath, [ | 71 d.dir(appPath, [ |
73 d.pubspec({ | 72 d.pubspec({ |
74 "name": "myapp", | 73 "name": "myapp", |
75 "dependencies": { | 74 "dependencies": { |
76 "foo": {"path": "../foo"}, | 75 "foo": {"path": "../foo"}, |
77 "bar": {"path": "../bar"} | 76 "bar": {"path": "../bar"} |
78 } | 77 } |
79 }) | 78 }) |
80 ]).create(); | 79 ]).create(); |
81 | 80 |
82 schedulePub(args: ["install"], | 81 pubInstall(); |
83 output: new RegExp(r"Dependencies installed!$")); | |
84 | 82 |
85 d.dir(packagesPath, [ | 83 d.dir(packagesPath, [ |
86 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), | 84 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), |
87 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), | 85 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), |
88 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) | 86 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) |
89 ]).validate(); | 87 ]).validate(); |
90 }); | 88 }); |
91 | 89 |
92 integration("shared dependency with absolute and relative path", () { | 90 integration("shared dependency with absolute and relative path", () { |
93 d.dir("shared", [ | 91 d.dir("shared", [ |
(...skipping 18 matching lines...) Expand all Loading... |
112 d.dir(appPath, [ | 110 d.dir(appPath, [ |
113 d.pubspec({ | 111 d.pubspec({ |
114 "name": "myapp", | 112 "name": "myapp", |
115 "dependencies": { | 113 "dependencies": { |
116 "foo": {"path": "../foo"}, | 114 "foo": {"path": "../foo"}, |
117 "bar": {"path": "../bar"} | 115 "bar": {"path": "../bar"} |
118 } | 116 } |
119 }) | 117 }) |
120 ]).create(); | 118 ]).create(); |
121 | 119 |
122 schedulePub(args: ["install"], | 120 pubInstall(); |
123 output: new RegExp(r"Dependencies installed!$")); | |
124 | 121 |
125 d.dir(packagesPath, [ | 122 d.dir(packagesPath, [ |
126 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), | 123 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), |
127 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), | 124 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), |
128 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) | 125 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) |
129 ]).validate(); | 126 ]).validate(); |
130 }); | 127 }); |
131 } | 128 } |
OLD | NEW |