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

Unified Diff: sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart

Issue 475093003: Precompile immutable globally-installed pub executables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 4 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
Index: sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/cached_package_test.dart b/sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
similarity index 56%
copy from sdk/lib/_internal/pub/test/global/activate/cached_package_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
index 348e7677ae4b6e9f5a0aa4168f000d86b61beef9..8816bcd63ceb71ee8de9295ea874ad7e7c71fa0c 100644
--- a/sdk/lib/_internal/pub/test/global/activate/cached_package_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
@@ -9,22 +9,24 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('can activate an already cached package', () {
+ integration('removes the 1.6-style lockfile', () {
servePackages((builder) {
builder.serve("foo", "1.0.0");
});
- schedulePub(args: ["cache", "add", "foo"]);
+ d.dir(cachePath, [
+ d.dir('global_packages', [
+ d.file('foo.lock', 'packages: {foo: {description: foo, source: hosted, '
+ 'version: "1.0.0"}}}')
+ ])
+ ]).create();
- schedulePub(args: ["global", "activate", "foo"], output: """
- Resolving dependencies...
- + foo 1.0.0
- Activated foo 1.0.0.""");
+ schedulePub(args: ["global", "activate", "foo"]);
- // Should be in global package cache.
d.dir(cachePath, [
d.dir('global_packages', [
- d.matcherFile('foo.lock', contains('1.0.0'))
+ d.nothing('foo.lock'),
+ d.dir('foo', [d.matcherFile('pubspec.lock', contains('1.0.0'))])
])
]).validate();
});

Powered by Google App Engine
This is Rietveld 408576698