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 the library itself is transformed", () { | 12 integration("reports a dependency if the library itself is transformed", () { |
15 d.dir(appPath, [ | 13 d.dir(appPath, [ |
16 d.pubspec({ | 14 d.pubspec({ |
17 "name": "myapp", | 15 "name": "myapp", |
18 "dependencies": {"foo": {"path": "../foo"}}, | 16 "dependencies": {"foo": {"path": "../foo"}}, |
19 "transformers": [ | 17 "transformers": [ |
20 {"foo": {"\$include": "bin/myapp.dart.dart"}} | 18 {"foo": {"\$include": "bin/myapp.dart.dart"}} |
21 ] | 19 ] |
22 }), | 20 }), |
23 d.dir("bin", [ | 21 d.dir("bin", [ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ]).create(); | 104 ]).create(); |
107 | 105 |
108 d.dir("foo", [ | 106 d.dir("foo", [ |
109 d.pubspec({"name": "foo", "version": "1.0.0"}), | 107 d.pubspec({"name": "foo", "version": "1.0.0"}), |
110 d.dir("lib", [d.file("foo.dart", transformer())]) | 108 d.dir("lib", [d.file("foo.dart", transformer())]) |
111 ]).create(); | 109 ]).create(); |
112 | 110 |
113 expectLibraryDependencies('myapp|bin/myapp.dart', []); | 111 expectLibraryDependencies('myapp|bin/myapp.dart', []); |
114 }); | 112 }); |
115 } | 113 } |
OLD | NEW |