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

Side by Side Diff: test/run/runs_from_a_dependency_override_after_dependency_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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import '../descriptor.dart' as d; 5 import '../descriptor.dart' as d;
6 import '../test_pub.dart'; 6 import '../test_pub.dart';
7 import '../serve/utils.dart'; 7 import '../serve/utils.dart';
8 8
9 main() { 9 main() {
10 initConfig();
11 // Regression test for issue 23113 10 // Regression test for issue 23113
12 integration('runs a named Dart application in a dependency', () { 11 integration('runs a named Dart application in a dependency', () {
13 servePackages((builder) { 12 servePackages((builder) {
14 builder.serve('foo', '1.0.0', pubspec: { 13 builder.serve('foo', '1.0.0', pubspec: {
15 'name': 'foo', 14 'name': 'foo',
16 'version': '1.0.0' 15 'version': '1.0.0'
17 }, contents: [ 16 }, contents: [
18 d.dir("bin", [ 17 d.dir("bin", [
19 d.file("bar.dart", "main() => print('foobar');") 18 d.file("bar.dart", "main() => print('foobar');")
20 ]) 19 ])
(...skipping 24 matching lines...) Expand all
45 }) 44 })
46 ]).create(); 45 ]).create();
47 46
48 pubGet(); 47 pubGet();
49 48
50 pub = pubRun(args: ["foo:bar"]); 49 pub = pubRun(args: ["foo:bar"]);
51 pub.stdout.expect("different"); 50 pub.stdout.expect("different");
52 pub.shouldExit(); 51 pub.shouldExit();
53 }); 52 });
54 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698