| 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();
|
| + });
|
| }
|
|
|