| Index: utils/tests/pub/install/sdk/check_out_transitive_test.dart
|
| diff --git a/utils/tests/pub/install/sdk/check_out_transitive_test.dart b/utils/tests/pub/install/sdk/check_out_transitive_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..513c6b249b6f8764fcff9a3bb1fbe7d3a90a25a4
|
| --- /dev/null
|
| +++ b/utils/tests/pub/install/sdk/check_out_transitive_test.dart
|
| @@ -0,0 +1,42 @@
|
| +// 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('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(r"Dependencies installed!$"));
|
| +
|
| + packagesDir({
|
| + 'foo': '0.0.1234',
|
| + 'bar': '0.0.1234'
|
| + }).scheduleValidate();
|
| +
|
| + run();
|
| + });
|
| +}
|
|
|