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

Unified Diff: utils/tests/pub/pub_install_sdk_test.dart

Issue 10947050: Support dependencies in SDK packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 3 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 | « utils/pub/sdk_source.dart ('k') | utils/tests/pub/pub_install_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/pub_install_sdk_test.dart
diff --git a/utils/tests/pub/pub_install_sdk_test.dart b/utils/tests/pub/pub_install_sdk_test.dart
index c51d363c924d0902ceaa86ad18bc83305159c9f7..dd88a451524b6c9526b61d61643efcbbf75f47f0 100644
--- a/utils/tests/pub/pub_install_sdk_test.dart
+++ b/utils/tests/pub/pub_install_sdk_test.dart
@@ -15,7 +15,8 @@ main() {
file('revision', '1234'),
dir('pkg', [
dir('foo', [
- libDir('foo', 'foo 0.0.1234')
+ libDir('foo', 'foo 0.0.1234'),
+ libPubspec('foo', '0.0.0-not.used')
])
])
]).scheduleCreate();
@@ -25,12 +26,40 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- output: '''
- Dependencies installed!
- ''');
+ output: const RegExp(@"Dependencies installed!$"));
packagesDir({"foo": "0.0.1234"}).scheduleValidate();
run();
});
+
+ test('includes transitive dependencies', () {
+ dir(sdkPath, [
+ file('revision', '1234'),
+ dir('pkg', [
+ dir('foo', [
+ libDir('foo', 'foo 0.0.1234'),
+ libPubspec('foo', '0.0.0-not.used', [{'sdk': 'bar'}])
+ ]),
+ dir('bar', [
+ libDir('bar', 'bar 0.0.1234'),
+ libPubspec('bar', '0.0.0-not.used')
+ ])
+ ])
+ ]).scheduleCreate();
+
+ dir(appPath, [
+ appPubspec([{'sdk': 'foo'}])
+ ]).scheduleCreate();
+
+ schedulePub(args: ['install'],
+ output: const RegExp(@"Dependencies installed!$"));
+
+ packagesDir({
+ 'foo': '0.0.1234',
+ 'bar': '0.0.1234'
+ }).scheduleValidate();
+
+ run();
+ });
}
« no previous file with comments | « utils/pub/sdk_source.dart ('k') | utils/tests/pub/pub_install_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698