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

Unified Diff: utils/tests/pub/install/sdk/check_out_test.dart

Issue 11187011: Add a Pub test that runs against the real Dart SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change. 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
« no previous file with comments | « no previous file | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/install/sdk/check_out_test.dart
diff --git a/utils/tests/pub/install/sdk/check_out_test.dart b/utils/tests/pub/install/sdk/check_out_test.dart
index 5c07b200681e6bdcfc576e3c490b32e4e8313873..c5ae131cc745612d0ccae52cd192ef6a07d4aa59 100644
--- a/utils/tests/pub/install/sdk/check_out_test.dart
+++ b/utils/tests/pub/install/sdk/check_out_test.dart
@@ -32,4 +32,27 @@ main() {
run();
});
+
+ // This is necessary to test that the "revision" file in the SDK remains in a
+ // format that Pub understands.
+ test('checks out a package from the real SDK', () {
+ ensureBuild();
+
+ dir(appPath, [
+ pubspec({
+ "name": "myapp",
+ "dependencies": {"unittest": {"sdk": "unittest"}}
+ })
+ ]).scheduleCreate();
+
+ schedulePub(args: ['install'],
+ output: const RegExp(r"Dependencies installed!$"),
+ realSdk: true);
+
+ dir(packagesPath, [
+ dir("unittest")
+ ]);
+
+ run();
+ });
}
« no previous file with comments | « no previous file | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698