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

Side by Side Diff: test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart

Issue 2377063002: Make "--no-packages-dir" the default. (Closed)
Patch Set: Revise again. Created 4 years, 2 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 7
8 main() { 8 main() {
9 integration("doesn't upgrade dependencies whose constraints have been " 9 integration("doesn't upgrade dependencies whose constraints have been "
10 "removed", () { 10 "removed", () {
11 servePackages((builder) { 11 servePackages((builder) {
12 builder.serve("foo", "1.0.0", deps: {"shared_dep": "any"}); 12 builder.serve("foo", "1.0.0", deps: {"shared_dep": "any"});
13 builder.serve("bar", "1.0.0", deps: {"shared_dep": "<2.0.0"}); 13 builder.serve("bar", "1.0.0", deps: {"shared_dep": "<2.0.0"});
14 builder.serve("shared_dep", "1.0.0"); 14 builder.serve("shared_dep", "1.0.0");
15 builder.serve("shared_dep", "2.0.0"); 15 builder.serve("shared_dep", "2.0.0");
16 }); 16 });
17 17
18 d.appDir({"foo": "any", "bar": "any"}).create(); 18 d.appDir({"foo": "any", "bar": "any"}).create();
19 19
20 pubGet(); 20 pubGet();
21 21
22 d.packagesDir({ 22 d.appPackagesFile({
23 "foo": "1.0.0", 23 "foo": "1.0.0",
24 "bar": "1.0.0", 24 "bar": "1.0.0",
25 "shared_dep": "1.0.0" 25 "shared_dep": "1.0.0"
26 }).validate(); 26 }).validate();
27 27
28 d.appDir({"foo": "any"}).create(); 28 d.appDir({"foo": "any"}).create();
29 29
30 pubGet(); 30 pubGet();
31 31
32 d.packagesDir({ 32 d.appPackagesFile({
33 "foo": "1.0.0", 33 "foo": "1.0.0",
34 "bar": null,
35 "shared_dep": "1.0.0" 34 "shared_dep": "1.0.0"
36 }).validate(); 35 }).validate();
37 }); 36 });
38 } 37 }
OLDNEW
« no previous file with comments | « test/get/hosted/cached_pubspec_test.dart ('k') | test/get/hosted/does_no_network_requests_when_possible_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698