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

Side by Side Diff: test/hosted/remove_removed_dependency_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 forBothPubGetAndUpgrade((command) { 9 forBothPubGetAndUpgrade((command) {
10 integration("removes a dependency that's removed from the pubspec", () { 10 integration("removes a dependency that's removed from the pubspec", () {
11 servePackages((builder) { 11 servePackages((builder) {
12 builder.serve("foo", "1.0.0"); 12 builder.serve("foo", "1.0.0");
13 builder.serve("bar", "1.0.0"); 13 builder.serve("bar", "1.0.0");
14 }); 14 });
15 15
16 d.appDir({"foo": "any", "bar": "any"}).create(); 16 d.appDir({"foo": "any", "bar": "any"}).create();
17 17
18 pubCommand(command); 18 pubCommand(command);
19 19
20 d.packagesDir({ 20 d.appPackagesFile({
21 "foo": "1.0.0", 21 "foo": "1.0.0",
22 "bar": "1.0.0" 22 "bar": "1.0.0"
23 }).validate(); 23 }).validate();
24 24
25 d.appDir({"foo": "any"}).create(); 25 d.appDir({"foo": "any"}).create();
26 26
27 pubCommand(command); 27 pubCommand(command);
28 28
29 d.packagesDir({ 29 d.appPackagesFile({
30 "foo": "1.0.0", 30 "foo": "1.0.0"
31 "bar": null
32 }).validate(); 31 }).validate();
33 }); 32 });
34 }); 33 });
35 } 34 }
OLDNEW
« no previous file with comments | « test/hosted/offline_test.dart ('k') | test/hosted/remove_removed_transitive_dependency_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698