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

Side by Side Diff: test/packages_file_test.dart

Issue 1096723002: Make pub generate .packages file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE d.file.
4
5 import 'descriptor.dart' as d;
6 import 'test_pub.dart';
7
8 main() {
9 initConfig();
10 forBothPubGetAndUpgrade((command) {
11 integration('check that .packages is created', () {
12 servePackages((builder) {
13 builder.serve("foo", "1.2.3",
14 deps: {'baz': '2.2.2'}, contents: [d.dir("lib", [])]);
15 builder.serve("bar", "3.2.1", contents: [d.dir("lib", [])]);
16 builder.serve("baz", "2.2.2",
17 deps: {"bar": "3.2.1"}, contents: [d.dir("lib", [])]);
18 });
19
20 d.appDir({"foo": "1.2.3"}).create();
21
22 pubCommand(command);
23
24 d.dir(appPath, [d.packagesFile({
25 "foo": "1.2.3", "bar": "3.2.1", "baz": "2.2.2", "myapp": "0.0.0"})])
26 .validate();
27 });
28 });
29 }
30
OLDNEW
« test/descriptor.dart ('K') | « test/get/dry_run_does_not_apply_changes_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698