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

Unified Diff: sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart

Issue 331593012: Add a "global activate" command to pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
diff --git a/sdk/lib/_internal/pub/test/cache/add/package_not_found_test.dart b/sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
similarity index 55%
copy from sdk/lib/_internal/pub/test/cache/add/package_not_found_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
index 9e60b5f7790e88b3d365cc37e645e0d02c10310d..5348fe849384110376df23af7117c7b5d4ab3069 100644
--- a/sdk/lib/_internal/pub/test/cache/add/package_not_found_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
@@ -2,17 +2,18 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library pub_tests;
+import 'package:scheduled_test/scheduled_test.dart';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
initConfig();
- integration('fails if the package cound not be found on the source', () {
+ integration('errors if the package could not be found', () {
servePackages([]);
- schedulePub(args: ["cache", "add", "foo"],
- error: new RegExp(r"Could not find package foo at http://.*"),
+ schedulePub(args: ["global", "activate", "foo"],
+ error: startsWith("Could not find package foo at"),
exitCode: 1);
});
}

Powered by Google App Engine
This is Rietveld 408576698