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

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

Issue 449983002: Don't try to preserve version of active package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/ignores_active_version_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/same_version_test.dart b/sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
similarity index 78%
rename from sdk/lib/_internal/pub/test/global/activate/same_version_test.dart
rename to sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
index 3d0209837b147f0c1e520b5f720b9f791d752287..36508558add05dc1db99f9299355c5ef088e432c 100644
--- a/sdk/lib/_internal/pub/test/global/activate/same_version_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
@@ -6,7 +6,7 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('keeps previously activated version if it meets the constraint',
+ integration('ignores previously activated version',
() {
servePackages([
packageMap("foo", "1.2.3"),
@@ -16,10 +16,11 @@ main() {
// Activate 1.2.3.
schedulePub(args: ["global", "activate", "foo", "1.2.3"]);
- // Activating it again re-resolves but maintains the version.
+ // Activating it again resolves to the new best version.
schedulePub(args: ["global", "activate", "foo", ">1.0.0"], output: """
Package foo is currently active at version 1.2.3.
+Downloading foo 1.3.0...
Resolving dependencies...
-Activated foo 1.2.3.""");
+Activated foo 1.3.0.""");
});
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/global_packages.dart ('k') | sdk/lib/_internal/pub/test/global/activate/same_version_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698