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

Side by Side Diff: test/get/git/different_repo_name_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 require the repository name to match the name in the ' 9 integration('doesn\'t require the repository name to match the name in the '
10 'pubspec', () { 10 'pubspec', () {
11 ensureGit(); 11 ensureGit();
12 12
13 d.git('foo.git', [ 13 d.git('foo.git', [
14 d.libDir('weirdname'), 14 d.libDir('weirdname'),
15 d.libPubspec('weirdname', '1.0.0') 15 d.libPubspec('weirdname', '1.0.0')
16 ]).create(); 16 ]).create();
17 17
18 d.dir(appPath, [ 18 d.dir(appPath, [
19 d.appPubspec({ 19 d.appPubspec({
20 "weirdname": {"git": "../foo.git"} 20 "weirdname": {"git": "../foo.git"}
21 }) 21 })
22 ]).create(); 22 ]).create();
23 23
24 pubGet(); 24 // TODO(rnystrom): Remove "--packages-dir" and validate using the
25 // ".packages" file instead of looking in the "packages" directory.
26 pubGet(args: ["--packages-dir"]);
25 27
26 d.dir(packagesPath, [ 28 d.dir(packagesPath, [
27 d.dir('weirdname', [ 29 d.dir('weirdname', [
28 d.file('weirdname.dart', 'main() => "weirdname";') 30 d.file('weirdname.dart', 'main() => "weirdname";')
29 ]) 31 ])
30 ]).validate(); 32 ]).validate();
31 }); 33 });
32 } 34 }
OLDNEW
« no previous file with comments | « test/get/git/check_out_with_trailing_slash_test.dart ('k') | test/get/git/doesnt_fetch_if_nothing_changes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698