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