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

Side by Side Diff: test/dependency_computer/dev_transformers_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("doesn't return a dependency's transformer that can't run on lib", 12 integration("doesn't return a dependency's transformer that can't run on lib",
15 () { 13 () {
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 }) 18 })
21 ]).create(); 19 ]).create();
22 20
23 d.dir("foo", [ 21 d.dir("foo", [
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 "version": "1.0.0", 82 "version": "1.0.0",
85 "transformers": [{"foo": {"\$include": "bin/foo.dart"}}] 83 "transformers": [{"foo": {"\$include": "bin/foo.dart"}}]
86 }), 84 }),
87 d.dir("lib", [d.file("foo.dart", transformer())]), 85 d.dir("lib", [d.file("foo.dart", transformer())]),
88 d.dir("test", [d.file("foo_test.dart", "")]) 86 d.dir("test", [d.file("foo_test.dart", "")])
89 ]).create(); 87 ]).create();
90 88
91 expectDependencies({"foo": []}); 89 expectDependencies({"foo": []});
92 }); 90 });
93 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698