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

Side by Side Diff: sdk/lib/_internal/pub/test/get/broken_symlink_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) 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 library pub_tests; 5 library pub_tests;
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';
11 11
12 main() { 12 main() {
13 initConfig(); 13 initConfig();
14 integration('replaces a broken "packages" symlink', () { 14 integration('replaces a broken "packages" symlink', () {
15 d.dir(appPath, [ 15 d.dir(appPath, [
16 d.appPubspec(), 16 d.appPubspec(),
17 d.libDir('foo'), 17 d.libDir('foo'),
18 d.dir("bin") 18 d.dir("bin")
19 ]).create(); 19 ]).create();
20 20
21 // Create a broken "packages" symlink in "bin". 21 // Create a broken "packages" symlink in "bin".
22 scheduleSymlink("nonexistent", path.join(appPath, "packages")); 22 scheduleSymlink("nonexistent", path.join(appPath, "packages"));
23 23
24 pubInstall(); 24 pubGet();
25 25
26 d.dir(appPath, [ 26 d.dir(appPath, [
27 d.dir("bin", [ 27 d.dir("bin", [
28 d.dir("packages", [ 28 d.dir("packages", [
29 d.dir("myapp", [ 29 d.dir("myapp", [
30 d.file('foo.dart', 'main() => "foo";') 30 d.file('foo.dart', 'main() => "foo";')
31 ]) 31 ])
32 ]) 32 ])
33 ]) 33 ])
34 ]).validate(); 34 ]).validate();
35 }); 35 });
36 36
37 integration('replaces a broken secondary "packages" symlink', () { 37 integration('replaces a broken secondary "packages" symlink', () {
38 d.dir(appPath, [ 38 d.dir(appPath, [
39 d.appPubspec(), 39 d.appPubspec(),
40 d.libDir('foo'), 40 d.libDir('foo'),
41 d.dir("bin") 41 d.dir("bin")
42 ]).create(); 42 ]).create();
43 43
44 // Create a broken "packages" symlink in "bin". 44 // Create a broken "packages" symlink in "bin".
45 scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages")); 45 scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages"));
46 46
47 pubInstall(); 47 pubGet();
48 48
49 d.dir(appPath, [ 49 d.dir(appPath, [
50 d.dir("bin", [ 50 d.dir("bin", [
51 d.dir("packages", [ 51 d.dir("packages", [
52 d.dir("myapp", [ 52 d.dir("myapp", [
53 d.file('foo.dart', 'main() => "foo";') 53 d.file('foo.dart', 'main() => "foo";')
54 ]) 54 ])
55 ]) 55 ])
56 ]) 56 ])
57 ]).validate(); 57 ]).validate();
58 }); 58 });
59 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698