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

Side by Side Diff: sdk/lib/_internal/pub/test/install/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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library pub_tests;
6
7 import '../../descriptor.dart' as d;
8 import '../../test_pub.dart';
9
10 main() {
11 initConfig();
12 integration('re-installs a package if it has an empty "lib" directory', () {
13 servePackages([packageMap("foo", "1.2.3")]);
14
15 // Set up a cache with a broken foo package.
16 d.dir(cachePath, [
17 d.dir('hosted', [
18 d.async(port.then((p) => d.dir('127.0.0.1%58$p', [
19 d.dir("foo-1.2.3", [
20 d.libPubspec("foo", "1.2.3"),
21 // Note: empty "lib" directory.
22 d.dir("lib", [])
23 ])
24 ])))
25 ])
26 ]).create();
27
28 d.appDir({"foo": "1.2.3"}).create();
29
30 pubInstall();
31
32 d.cacheDir({"foo": "1.2.3"}).validate();
33 d.packagesDir({"foo": "1.2.3"}).validate();
34 });
35
36 integration('re-installs a package if it has no pubspec', () {
37 servePackages([packageMap("foo", "1.2.3")]);
38
39 // Set up a cache with a broken foo package.
40 d.dir(cachePath, [
41 d.dir('hosted', [
42 d.async(port.then((p) => d.dir('127.0.0.1%58$p', [
43 d.dir("foo-1.2.3", [
44 d.libDir("foo")
45 // Note: no pubspec.
46 ])
47 ])))
48 ])
49 ]).create();
50
51 d.appDir({"foo": "1.2.3"}).create();
52
53 pubInstall();
54
55 d.cacheDir({"foo": "1.2.3"}).validate();
56 d.packagesDir({"foo": "1.2.3"}).validate();
57 });
58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698