| Index: utils/tests/pub/pub_test.dart
|
| diff --git a/utils/tests/pub/pub_test.dart b/utils/tests/pub/pub_test.dart
|
| index 8d7f1cdc94c72acdf81965ba187c3ffaf064bf0d..93a594513b1133545beafaa6c049825ed38d43d7 100644
|
| --- a/utils/tests/pub/pub_test.dart
|
| +++ b/utils/tests/pub/pub_test.dart
|
| @@ -168,19 +168,6 @@ dependencies:
|
| schedulePub(args: ['install'],
|
| output: const RegExp(@"Dependencies installed!$"));
|
|
|
| - dir(cachePath, [
|
| - dir('git', [
|
| - dir('cache', [
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ]),
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| dir(packagesPath, [
|
| dir('foo', [
|
| file('foo.dart', 'main() => "foo";')
|
| @@ -217,25 +204,6 @@ dependencies:
|
| schedulePub(args: ['install'],
|
| output: const RegExp("Dependencies installed!\$"));
|
|
|
| - dir(cachePath, [
|
| - dir('git', [
|
| - dir('cache', [
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ]),
|
| - dir(new RegExp(@'bar-[a-f0-9]+'), [
|
| - file('bar.dart', 'main() => "bar";')
|
| - ])
|
| - ]),
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ]),
|
| - dir(new RegExp(@'bar-[a-f0-9]+'), [
|
| - file('bar.dart', 'main() => "bar";')
|
| - ])
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| dir(packagesPath, [
|
| dir('foo', [
|
| file('foo.dart', 'main() => "foo";')
|
| @@ -249,128 +217,6 @@ dependencies:
|
| });
|
| });
|
|
|
| - test('checks out and updates a package from Git', () {
|
| - withGit(() {
|
| - git('foo.git', [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ]).scheduleCreate();
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - git: ../foo.git
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(cachePath, [
|
| - dir('git', [
|
| - dir('cache', [
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ]),
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - // TODO(nweiz): remove this once we support pub update
|
| - dir(packagesPath).scheduleDelete();
|
| -
|
| - git('foo.git', [
|
| - file('foo.dart', 'main() => "foo 2";')
|
| - ]).scheduleCommit();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - // When we download a new version of the git package, we should re-use the
|
| - // git/cache directory but create a new git/ directory.
|
| - dir(cachePath, [
|
| - dir('git', [
|
| - dir('cache', [
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo 2";')
|
| - ])
|
| - ]),
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ]),
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo 2";')
|
| - ])
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => "foo 2";')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - run();
|
| - });
|
| - });
|
| -
|
| - test('checks out a package from Git twice', () {
|
| - withGit(() {
|
| - git('foo.git', [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ]).scheduleCreate();
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - git: ../foo.git
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(cachePath, [
|
| - dir('git', [
|
| - dir('cache', [
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ]),
|
| - dir(new RegExp(@'foo-[a-f0-9]+'), [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => "foo";')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - // TODO(nweiz): remove this once we support pub update
|
| - dir(packagesPath).scheduleDelete();
|
| -
|
| - // Verify that nothing breaks if we install a Git revision that's already
|
| - // in the cache.
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - run();
|
| - });
|
| - });
|
| -
|
| test('checks out a package from a pub server', () {
|
| servePackages("localhost", 3123, ['{name: foo, version: 1.2.3}']);
|
|
|
|
|