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

Unified Diff: utils/tests/pub/update/hosted/unlock_dependers_test.dart

Issue 11035066: Spit pub tests into smaller suites. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: utils/tests/pub/update/hosted/unlock_dependers_test.dart
diff --git a/utils/tests/pub/update/hosted/unlock_dependers_test.dart b/utils/tests/pub/update/hosted/unlock_dependers_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..876a4aef5065668b4c41df6edf4598c1087e7056
--- /dev/null
+++ b/utils/tests/pub/update/hosted/unlock_dependers_test.dart
@@ -0,0 +1,45 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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('dart:io');
+
+#import('../../test_pub.dart');
+#import('../../../../../pkg/unittest/unittest.dart');
+
+main() {
+ test("updates a locked package's dependers in order to get it to max "
+ "version", () {
+ servePackages([
+ package("foo", "1.0.0", [dependency("bar", "<2.0.0")]),
+ package("bar", "1.0.0")
+ ]);
+
+ appDir([dependency("foo"), dependency("bar")]).scheduleCreate();
+
+ schedulePub(args: ['install'],
+ output: const RegExp(r"Dependencies installed!$"));
+
+ packagesDir({
+ "foo": "1.0.0",
+ "bar": "1.0.0"
+ }).scheduleValidate();
+
+ servePackages([
+ package("foo", "2.0.0", [dependency("bar", "<3.0.0")]),
+ package("bar", "2.0.0")
+ ]);
+
+ schedulePub(args: ['update', 'bar'],
+ output: const RegExp(r"Dependencies updated!$"));
+
+ packagesDir({
+ "foo": "2.0.0",
+ "bar": "2.0.0"
+ }).scheduleValidate();
+
+ run();
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698