| 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; | 5 library pub_tests; |
| 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 import 'utils.dart'; | 9 import 'utils.dart'; |
| 10 | 10 |
| 11 void main() { | 11 void main() { |
| 12 initConfig(); | |
| 13 | |
| 14 integration("reports a dependency if a transformed local file is imported", | 12 integration("reports a dependency if a transformed local file is imported", |
| 15 () { | 13 () { |
| 16 d.dir(appPath, [ | 14 d.dir(appPath, [ |
| 17 d.pubspec({ | 15 d.pubspec({ |
| 18 "name": "myapp", | 16 "name": "myapp", |
| 19 "dependencies": {"foo": {"path": "../foo"}}, | 17 "dependencies": {"foo": {"path": "../foo"}}, |
| 20 "transformers": [ | 18 "transformers": [ |
| 21 {"foo": {"\$include": "lib/lib.dart"}}, | 19 {"foo": {"\$include": "lib/lib.dart"}}, |
| 22 "myapp" | 20 "myapp" |
| 23 ] | 21 ] |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 ]).create(); | 182 ]).create(); |
| 185 | 183 |
| 186 d.dir("foo", [ | 184 d.dir("foo", [ |
| 187 d.pubspec({"name": "foo", "version": "1.0.0"}), | 185 d.pubspec({"name": "foo", "version": "1.0.0"}), |
| 188 d.dir("lib", [d.file("transformer.dart", transformer())]) | 186 d.dir("lib", [d.file("transformer.dart", transformer())]) |
| 189 ]).create(); | 187 ]).create(); |
| 190 | 188 |
| 191 expectDependencies({'myapp': ['foo'], 'foo': []}); | 189 expectDependencies({'myapp': ['foo'], 'foo': []}); |
| 192 }); | 190 }); |
| 193 } | 191 } |
| OLD | NEW |