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

Side by Side Diff: sdk/lib/_internal/pub/test/get/path/relative_path_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 '../../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 initConfig(); 9 initConfig();
10 integration("can use relative path", () { 10 integration("can use relative path", () {
11 d.dir("foo", [ 11 d.dir("foo", [
12 d.libDir("foo"), 12 d.libDir("foo"),
13 d.libPubspec("foo", "0.0.1") 13 d.libPubspec("foo", "0.0.1")
14 ]).create(); 14 ]).create();
15 15
16 d.dir(appPath, [ 16 d.dir(appPath, [
17 d.appPubspec({ 17 d.appPubspec({
18 "foo": {"path": "../foo"} 18 "foo": {"path": "../foo"}
19 }) 19 })
20 ]).create(); 20 ]).create();
21 21
22 pubInstall(); 22 pubGet();
23 23
24 d.dir(packagesPath, [ 24 d.dir(packagesPath, [
25 d.dir("foo", [ 25 d.dir("foo", [
26 d.file("foo.dart", 'main() => "foo";') 26 d.file("foo.dart", 'main() => "foo";')
27 ]) 27 ])
28 ]).validate(); 28 ]).validate();
29 }); 29 });
30 30
31 integration("path is relative to containing d.pubspec", () { 31 integration("path is relative to containing d.pubspec", () {
32 d.dir("relative", [ 32 d.dir("relative", [
33 d.dir("foo", [ 33 d.dir("foo", [
34 d.libDir("foo"), 34 d.libDir("foo"),
35 d.libPubspec("foo", "0.0.1", deps: { 35 d.libPubspec("foo", "0.0.1", deps: {
36 "bar": {"path": "../bar"} 36 "bar": {"path": "../bar"}
37 }) 37 })
38 ]), 38 ]),
39 d.dir("bar", [ 39 d.dir("bar", [
40 d.libDir("bar"), 40 d.libDir("bar"),
41 d.libPubspec("bar", "0.0.1") 41 d.libPubspec("bar", "0.0.1")
42 ]) 42 ])
43 ]).create(); 43 ]).create();
44 44
45 d.dir(appPath, [ 45 d.dir(appPath, [
46 d.appPubspec({ 46 d.appPubspec({
47 "foo": {"path": "../relative/foo"} 47 "foo": {"path": "../relative/foo"}
48 }) 48 })
49 ]).create(); 49 ]).create();
50 50
51 pubInstall(); 51 pubGet();
52 52
53 d.dir(packagesPath, [ 53 d.dir(packagesPath, [
54 d.dir("foo", [ 54 d.dir("foo", [
55 d.file("foo.dart", 'main() => "foo";') 55 d.file("foo.dart", 'main() => "foo";')
56 ]), 56 ]),
57 d.dir("bar", [ 57 d.dir("bar", [
58 d.file("bar.dart", 'main() => "bar";') 58 d.file("bar.dart", 'main() => "bar";')
59 ]) 59 ])
60 ]).validate(); 60 ]).validate();
61 }); 61 });
62 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698