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

Side by Side Diff: sdk/lib/_internal/pub/test/hosted/version_negotiation_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:scheduled_test/scheduled_server.dart'; 7 import 'package:scheduled_test/scheduled_server.dart';
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import '../descriptor.dart' as d; 10 import '../descriptor.dart' as d;
11 import '../test_pub.dart'; 11 import '../test_pub.dart';
12 12
13 main() { 13 main() {
14 initConfig(); 14 initConfig();
15 15
16 forBothPubInstallAndUpdate((command) { 16 forBothPubGetAndUpgrade((command) {
17 integration('sends the correct Accept header', () { 17 integration('sends the correct Accept header', () {
18 var server = new ScheduledServer(); 18 var server = new ScheduledServer();
19 19
20 d.appDir({ 20 d.appDir({
21 "foo": { 21 "foo": {
22 "hosted": { 22 "hosted": {
23 "name": "foo", 23 "name": "foo",
24 "url": server.url.then((url) => url.toString()) 24 "url": server.url.then((url) => url.toString())
25 } 25 }
26 } 26 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }); 61 });
62 62
63 pub.shouldExit(1); 63 pub.shouldExit(1);
64 64
65 expect(pub.remainingStderr(), completion(equals( 65 expect(pub.remainingStderr(), completion(equals(
66 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" 66 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n"
67 "Upgrade pub to the latest version and try again."))); 67 "Upgrade pub to the latest version and try again.")));
68 }); 68 });
69 }); 69 });
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698