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

Side by Side Diff: test/get/dot_packages_test.dart

Issue 1096723002: Make pub generate .packages file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. 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) 2012, the Dart project authors. Please see the AUTHORS d.file
nweiz 2015/06/10 22:33:59 2015 I'd call this file "packages_file_test". Als
Lasse Reichstein Nielsen 2015/06/11 11:21:02 Done.
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 library pub_tests;
nweiz 2015/06/10 22:33:59 Remove this. Some old tests have it, but new tests
Lasse Reichstein Nielsen 2015/06/11 11:21:03 Done.
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9
10 main() {
11 initConfig();
12 integration('re-gets a package if its source has changed', () {
nweiz 2015/06/10 22:33:59 Update the test name.
Lasse Reichstein Nielsen 2015/06/11 11:21:02 Done.
13 servePackages((builder) {
14 builder.serve("foo", "1.2.3",
15 deps: {'baz': '2.2.2'},
nweiz 2015/06/10 22:33:59 We don't do argument alignment like this. It'll al
Lasse Reichstein Nielsen 2015/06/11 11:21:02 Arguments fixed to match formatter. The d.dir bel
nweiz 2015/06/12 23:48:08 Yeah, I think Bob is working on better support for
Bob Nystrom 2015/06/12 23:49:15 Yup. It's landed on master in the dart_style repo
16 contents: [d.dir("lib", [])]);
17 builder.serve("bar", "3.2.1",
18 contents: [d.dir("lib", [])]);
19 builder.serve("baz", "2.2.2",
20 deps: {"bar": "3.2.1"},
21 contents: [d.dir("lib", [])]);
22 });
23
24 d.appDir({"foo": "1.2.3"}).create();
25
26 pubGet();
27
28 d.dir(appPath, [d.dotPackagesFile({"foo": "1.2.3",
nweiz 2015/06/10 22:33:59 This should contain a link back to the application
Lasse Reichstein Nielsen 2015/06/11 11:21:03 True. Updating test to check fail if there are mor
29 "bar": "3.2.1",
30 "baz": "3.2.1"})]).validate();
31 });
32 }
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698