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

Side by Side Diff: sdk/lib/_internal/pub/test/get/hosted/repair_cache_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 '../../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() {
11 initConfig(); 11 initConfig();
12 integration('re-installs a package if it has an empty "lib" directory', () { 12 integration('re-gets a package if it has an empty "lib" directory', () {
13 servePackages([packageMap("foo", "1.2.3")]); 13 servePackages([packageMap("foo", "1.2.3")]);
14 14
15 // Set up a cache with a broken foo package. 15 // Set up a cache with a broken foo package.
16 d.dir(cachePath, [ 16 d.dir(cachePath, [
17 d.dir('hosted', [ 17 d.dir('hosted', [
18 d.async(port.then((p) => d.dir('127.0.0.1%58$p', [ 18 d.async(port.then((p) => d.dir('127.0.0.1%58$p', [
19 d.dir("foo-1.2.3", [ 19 d.dir("foo-1.2.3", [
20 d.libPubspec("foo", "1.2.3"), 20 d.libPubspec("foo", "1.2.3"),
21 // Note: empty "lib" directory. 21 // Note: empty "lib" directory.
22 d.dir("lib", []) 22 d.dir("lib", [])
23 ]) 23 ])
24 ]))) 24 ])))
25 ]) 25 ])
26 ]).create(); 26 ]).create();
27 27
28 d.appDir({"foo": "1.2.3"}).create(); 28 d.appDir({"foo": "1.2.3"}).create();
29 29
30 pubInstall(); 30 pubGet();
31 31
32 d.cacheDir({"foo": "1.2.3"}).validate(); 32 d.cacheDir({"foo": "1.2.3"}).validate();
33 d.packagesDir({"foo": "1.2.3"}).validate(); 33 d.packagesDir({"foo": "1.2.3"}).validate();
34 }); 34 });
35 35
36 integration('re-installs a package if it has no pubspec', () { 36 integration('re-gets a package if it has no pubspec', () {
37 servePackages([packageMap("foo", "1.2.3")]); 37 servePackages([packageMap("foo", "1.2.3")]);
38 38
39 // Set up a cache with a broken foo package. 39 // Set up a cache with a broken foo package.
40 d.dir(cachePath, [ 40 d.dir(cachePath, [
41 d.dir('hosted', [ 41 d.dir('hosted', [
42 d.async(port.then((p) => d.dir('127.0.0.1%58$p', [ 42 d.async(port.then((p) => d.dir('127.0.0.1%58$p', [
43 d.dir("foo-1.2.3", [ 43 d.dir("foo-1.2.3", [
44 d.libDir("foo") 44 d.libDir("foo")
45 // Note: no pubspec. 45 // Note: no pubspec.
46 ]) 46 ])
47 ]))) 47 ])))
48 ]) 48 ])
49 ]).create(); 49 ]).create();
50 50
51 d.appDir({"foo": "1.2.3"}).create(); 51 d.appDir({"foo": "1.2.3"}).create();
52 52
53 pubInstall(); 53 pubGet();
54 54
55 d.cacheDir({"foo": "1.2.3"}).validate(); 55 d.cacheDir({"foo": "1.2.3"}).validate();
56 d.packagesDir({"foo": "1.2.3"}).validate(); 56 d.packagesDir({"foo": "1.2.3"}).validate();
57 }); 57 });
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698