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

Side by Side Diff: sdk/lib/_internal/pub/test/get/path/shared_dependency_test.dart

Issue 26284002: Rename "install" -> "get" and "update" -> "upgrade". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
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 18 matching lines...) Expand all
29 }) 29 })
30 ]).create(); 30 ]).create();
31 31
32 d.dir(appPath, [ 32 d.dir(appPath, [
33 d.appPubspec({ 33 d.appPubspec({
34 "foo": {"path": "../foo"}, 34 "foo": {"path": "../foo"},
35 "bar": {"path": "../bar"} 35 "bar": {"path": "../bar"}
36 }) 36 })
37 ]).create(); 37 ]).create();
38 38
39 pubInstall(); 39 pubGet();
40 40
41 d.dir(packagesPath, [ 41 d.dir(packagesPath, [
42 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), 42 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]),
43 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), 43 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]),
44 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) 44 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')])
45 ]).validate(); 45 ]).validate();
46 }); 46 });
47 47
48 integration("shared dependency with paths that normalize the same", () { 48 integration("shared dependency with paths that normalize the same", () {
49 d.dir("shared", [ 49 d.dir("shared", [
(...skipping 15 matching lines...) Expand all
65 }) 65 })
66 ]).create(); 66 ]).create();
67 67
68 d.dir(appPath, [ 68 d.dir(appPath, [
69 d.appPubspec({ 69 d.appPubspec({
70 "foo": {"path": "../foo"}, 70 "foo": {"path": "../foo"},
71 "bar": {"path": "../bar"} 71 "bar": {"path": "../bar"}
72 }) 72 })
73 ]).create(); 73 ]).create();
74 74
75 pubInstall(); 75 pubGet();
76 76
77 d.dir(packagesPath, [ 77 d.dir(packagesPath, [
78 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), 78 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]),
79 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), 79 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]),
80 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) 80 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')])
81 ]).validate(); 81 ]).validate();
82 }); 82 });
83 83
84 integration("shared dependency with absolute and relative path", () { 84 integration("shared dependency with absolute and relative path", () {
85 d.dir("shared", [ 85 d.dir("shared", [
(...skipping 15 matching lines...) Expand all
101 }) 101 })
102 ]).create(); 102 ]).create();
103 103
104 d.dir(appPath, [ 104 d.dir(appPath, [
105 d.appPubspec({ 105 d.appPubspec({
106 "foo": {"path": "../foo"}, 106 "foo": {"path": "../foo"},
107 "bar": {"path": "../bar"} 107 "bar": {"path": "../bar"}
108 }) 108 })
109 ]).create(); 109 ]).create();
110 110
111 pubInstall(); 111 pubGet();
112 112
113 d.dir(packagesPath, [ 113 d.dir(packagesPath, [
114 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]), 114 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]),
115 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]), 115 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')]),
116 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')]) 116 d.dir("shared", [d.file("shared.dart", 'main() => "shared";')])
117 ]).validate(); 117 ]).validate();
118 }); 118 });
119 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698