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

Side by Side Diff: test/get/path/shared_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
« no previous file with comments | « test/get/path/shared_dependency_symlink_test.dart ('k') | test/get/relative_symlink_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'package:path/path.dart' as path; 5 import 'package:path/path.dart' as path;
6 6
7 import '../../descriptor.dart' as d; 7 import '../../descriptor.dart' as d;
8 import '../../test_pub.dart'; 8 import '../../test_pub.dart';
9 9
10 main() { 10 main() {
(...skipping 19 matching lines...) Expand all
30 30
31 d.dir(appPath, [ 31 d.dir(appPath, [
32 d.appPubspec({ 32 d.appPubspec({
33 "foo": {"path": "../foo"}, 33 "foo": {"path": "../foo"},
34 "bar": {"path": "../bar"} 34 "bar": {"path": "../bar"}
35 }) 35 })
36 ]).create(); 36 ]).create();
37 37
38 pubGet(); 38 pubGet();
39 39
40 d.dir(packagesPath, [ 40 d.appPackagesFile({
41 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), 41 "foo": "../foo",
42 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), 42 "bar": "../bar",
43 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) 43 "shared": "../shared"
44 ]).validate(); 44 }).validate();
45 }); 45 });
46 46
47 integration("shared dependency with paths that normalize the same", () { 47 integration("shared dependency with paths that normalize the same", () {
48 d.dir("shared", [ 48 d.dir("shared", [
49 d.libDir("shared"), 49 d.libDir("shared"),
50 d.libPubspec("shared", "0.0.1") 50 d.libPubspec("shared", "0.0.1")
51 ]).create(); 51 ]).create();
52 52
53 d.dir("foo", [ 53 d.dir("foo", [
54 d.libDir("foo"), 54 d.libDir("foo"),
(...skipping 11 matching lines...) Expand all
66 66
67 d.dir(appPath, [ 67 d.dir(appPath, [
68 d.appPubspec({ 68 d.appPubspec({
69 "foo": {"path": "../foo"}, 69 "foo": {"path": "../foo"},
70 "bar": {"path": "../bar"} 70 "bar": {"path": "../bar"}
71 }) 71 })
72 ]).create(); 72 ]).create();
73 73
74 pubGet(); 74 pubGet();
75 75
76 d.dir(packagesPath, [ 76 d.appPackagesFile({
77 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), 77 "foo": "../foo",
78 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), 78 "bar": "../bar",
79 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) 79 "shared": "../shared"
80 ]).validate(); 80 }).validate();
81 }); 81 });
82 82
83 integration("shared dependency with absolute and relative path", () { 83 integration("shared dependency with absolute and relative path", () {
84 d.dir("shared", [ 84 d.dir("shared", [
85 d.libDir("shared"), 85 d.libDir("shared"),
86 d.libPubspec("shared", "0.0.1") 86 d.libPubspec("shared", "0.0.1")
87 ]).create(); 87 ]).create();
88 88
89 d.dir("foo", [ 89 d.dir("foo", [
90 d.libDir("foo"), 90 d.libDir("foo"),
(...skipping 11 matching lines...) Expand all
102 102
103 d.dir(appPath, [ 103 d.dir(appPath, [
104 d.appPubspec({ 104 d.appPubspec({
105 "foo": {"path": "../foo"}, 105 "foo": {"path": "../foo"},
106 "bar": {"path": "../bar"} 106 "bar": {"path": "../bar"}
107 }) 107 })
108 ]).create(); 108 ]).create();
109 109
110 pubGet(); 110 pubGet();
111 111
112 d.dir(packagesPath, [ 112 d.appPackagesFile({
113 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), 113 "foo": "../foo",
114 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), 114 "bar": "../bar",
115 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) 115 "shared": path.join(sandboxDir, "shared")
116 ]).validate(); 116 }).validate();
117 }); 117 });
118 } 118 }
OLDNEW
« no previous file with comments | « test/get/path/shared_dependency_symlink_test.dart ('k') | test/get/relative_symlink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698