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

Side by Side Diff: test/dependency_computer/conservative_dependencies_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, 6 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 'package:scheduled_test/scheduled_test.dart'; 7 import 'package:scheduled_test/scheduled_test.dart';
8 8
9 import '../descriptor.dart' as d; 9 import '../descriptor.dart' as d;
10 import '../test_pub.dart'; 10 import '../test_pub.dart';
11 import 'utils.dart'; 11 import 'utils.dart';
12 12
13 void main() { 13 void main() {
14 initConfig();
15
16 integration("reports previous transformers as dependencies if the " 14 integration("reports previous transformers as dependencies if the "
17 "transformer is transformed", () { 15 "transformer is transformed", () {
18 // The root app just exists so that something is transformed by pkg and qux. 16 // The root app just exists so that something is transformed by pkg and qux.
19 d.dir(appPath, [ 17 d.dir(appPath, [
20 d.pubspec({ 18 d.pubspec({
21 "name": "myapp", 19 "name": "myapp",
22 "version": "1.0.0", 20 "version": "1.0.0",
23 "dependencies": { 21 "dependencies": {
24 "pkg": {"path": "../pkg"}, 22 "pkg": {"path": "../pkg"},
25 "qux": {"path": "../qux"} 23 "qux": {"path": "../qux"}
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 "name": "baz", 455 "name": "baz",
458 "version": "1.0.0", 456 "version": "1.0.0",
459 "transformers": ["baz"] 457 "transformers": ["baz"]
460 }), 458 }),
461 d.dir("lib", [d.file("baz.dart", transformer())]) 459 d.dir("lib", [d.file("baz.dart", transformer())])
462 ]).create(); 460 ]).create();
463 461
464 expectDependencies({'pkg': ['foo'], 'foo': [], 'bar': [], 'baz': []}); 462 expectDependencies({'pkg': ['foo'], 'foo': [], 'bar': [], 'baz': []});
465 }); 463 });
466 } 464 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698