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

Side by Side Diff: test/packages_file_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 d.file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS d.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 d.file. 3 // BSD-style license that can be found in the LICENSE d.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 7
8 main() { 8 main() {
9 initConfig();
10 forBothPubGetAndUpgrade((command) { 9 forBothPubGetAndUpgrade((command) {
11 integration('.packages file is created', () { 10 integration('.packages file is created', () {
12 servePackages((builder) { 11 servePackages((builder) {
13 builder.serve("foo", "1.2.3", 12 builder.serve("foo", "1.2.3",
14 deps: {'baz': '2.2.2'}, contents: [d.dir("lib", [])]); 13 deps: {'baz': '2.2.2'}, contents: [d.dir("lib", [])]);
15 builder.serve("bar", "3.2.1", contents: [d.dir("lib", [])]); 14 builder.serve("bar", "3.2.1", contents: [d.dir("lib", [])]);
16 builder.serve("baz", "2.2.2", 15 builder.serve("baz", "2.2.2",
17 deps: {"bar": "3.2.1"}, contents: [d.dir("lib", [])]); 16 deps: {"bar": "3.2.1"}, contents: [d.dir("lib", [])]);
18 }); 17 });
19 18
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ]).create(); 80 ]).create();
82 81
83 pubCommand(command); 82 pubCommand(command);
84 83
85 d.dir(appPath, [d.packagesFile({"myapp": "0.0.0", 84 d.dir(appPath, [d.packagesFile({"myapp": "0.0.0",
86 "baz": "../local_baz"})]).validate(); 85 "baz": "../local_baz"})]).validate();
87 }); 86 });
88 87
89 }); 88 });
90 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698