Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: test/dependency_computer/cycle_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("allows a package dependency cycle that's unrelated to " 12 integration("allows a package dependency cycle that's unrelated to "
15 "transformers", () { 13 "transformers", () {
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": ["myapp/first", "myapp/second"] 18 "transformers": ["myapp/first", "myapp/second"]
21 }), 19 }),
22 d.dir('lib', [ 20 d.dir('lib', [
23 d.file("first.dart", transformer()), 21 d.file("first.dart", transformer()),
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 d.dir('lib', [ 199 d.dir('lib', [
202 d.file("myapp.dart", transformer(['foo.dart'])), 200 d.file("myapp.dart", transformer(['foo.dart'])),
203 d.file("foo.dart", "import 'bar.dart';"), 201 d.file("foo.dart", "import 'bar.dart';"),
204 d.file("bar.dart", "import 'myapp.dart';"), 202 d.file("bar.dart", "import 'myapp.dart';"),
205 ]) 203 ])
206 ]).create(); 204 ]).create();
207 205
208 expectDependencies({'myapp': []}); 206 expectDependencies({'myapp': []});
209 }); 207 });
210 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698