| 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("allows a package dependency cycle that's unrelated to " | 10 integration("allows a package dependency cycle that's unrelated to " |
| 13 "transformers", () { | 11 "transformers", () { |
| 14 d.dir(appPath, [ | 12 d.dir(appPath, [ |
| 15 d.pubspec({ | 13 d.pubspec({ |
| 16 "name": "myapp", | 14 "name": "myapp", |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 d.dir('lib', [ | 215 d.dir('lib', [ |
| 218 d.file("myapp.dart", transformer(['foo.dart'])), | 216 d.file("myapp.dart", transformer(['foo.dart'])), |
| 219 d.file("foo.dart", "import 'bar.dart';"), | 217 d.file("foo.dart", "import 'bar.dart';"), |
| 220 d.file("bar.dart", "import 'myapp.dart';"), | 218 d.file("bar.dart", "import 'myapp.dart';"), |
| 221 ]) | 219 ]) |
| 222 ]).create(); | 220 ]).create(); |
| 223 | 221 |
| 224 expectDependencies({'myapp': []}); | 222 expectDependencies({'myapp': []}); |
| 225 }); | 223 }); |
| 226 } | 224 } |
| OLD | NEW |