OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library pub_tests; | |
6 | |
7 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
9 import 'utils.dart'; | 7 import 'utils.dart'; |
10 | 8 |
11 void main() { | 9 void main() { |
12 integration("reports a dependency if a transformed local file is imported", | 10 integration("reports a dependency if a transformed local file is imported", |
13 () { | 11 () { |
14 d.dir(appPath, [ | 12 d.dir(appPath, [ |
15 d.pubspec({ | 13 d.pubspec({ |
16 "name": "myapp", | 14 "name": "myapp", |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 ]).create(); | 180 ]).create(); |
183 | 181 |
184 d.dir("foo", [ | 182 d.dir("foo", [ |
185 d.pubspec({"name": "foo", "version": "1.0.0"}), | 183 d.pubspec({"name": "foo", "version": "1.0.0"}), |
186 d.dir("lib", [d.file("transformer.dart", transformer())]) | 184 d.dir("lib", [d.file("transformer.dart", transformer())]) |
187 ]).create(); | 185 ]).create(); |
188 | 186 |
189 expectDependencies({'myapp': ['foo'], 'foo': []}); | 187 expectDependencies({'myapp': ['foo'], 'foo': []}); |
190 }); | 188 }); |
191 } | 189 } |
OLD | NEW |