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

Side by Side Diff: test/get/path/relative_symlink_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) 2013, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2013, 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 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. 3 // BSD-style license that can be found in the LICENSE d.file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:path/path.dart' as path; 7 import 'package:path/path.dart' as path;
8 8
9 import '../../descriptor.dart' as d; 9 import '../../descriptor.dart' as d;
10 import '../../test_pub.dart'; 10 import '../../test_pub.dart';
(...skipping 11 matching lines...) Expand all
22 d.libDir("foo"), 22 d.libDir("foo"),
23 d.libPubspec("foo", "0.0.1") 23 d.libPubspec("foo", "0.0.1")
24 ]).create(); 24 ]).create();
25 25
26 d.dir(appPath, [ 26 d.dir(appPath, [
27 d.appPubspec({ 27 d.appPubspec({
28 "foo": {"path": "../foo"} 28 "foo": {"path": "../foo"}
29 }) 29 })
30 ]).create(); 30 ]).create();
31 31
32 pubGet(); 32 pubGet(args: ["--packages-dir"]);
33 33
34 d.dir("moved").create(); 34 d.dir("moved").create();
35 35
36 // Move the app and package. Since they are still next to each other, it 36 // Move the app and package. Since they are still next to each other, it
37 // should still be found. 37 // should still be found.
38 scheduleRename("foo", path.join("moved", "foo")); 38 scheduleRename("foo", path.join("moved", "foo"));
39 scheduleRename(appPath, path.join("moved", appPath)); 39 scheduleRename(appPath, path.join("moved", appPath));
40 40
41 d.dir("moved", [ 41 d.dir("moved", [
42 d.dir(packagesPath, [ 42 d.dir(packagesPath, [
43 d.dir("foo", [ 43 d.dir("foo", [
44 d.file("foo.dart", 'main() => "foo";') 44 d.file("foo.dart", 'main() => "foo";')
45 ]) 45 ])
46 ]) 46 ])
47 ]).validate(); 47 ]).validate();
48 }); 48 });
49 } 49 }
OLDNEW
« no previous file with comments | « test/get/path/relative_path_test.dart ('k') | test/get/path/shared_dependency_symlink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698