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

Unified Diff: sdk/lib/_internal/pub/test/global/binstubs/removes_when_deactivated_test.dart

Issue 583853002: Use precompiled dependencies in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: sdk/lib/_internal/pub/test/global/binstubs/removes_when_deactivated_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/supports_version_solver_backtracking_test.dart b/sdk/lib/_internal/pub/test/global/binstubs/removes_when_deactivated_test.dart
similarity index 50%
copy from sdk/lib/_internal/pub/test/global/activate/supports_version_solver_backtracking_test.dart
copy to sdk/lib/_internal/pub/test/global/binstubs/removes_when_deactivated_test.dart
index 97d83de87b6d16c5bf37dddad9b020ab851d3f96..3a8e149c588a0abb056a3d4091105dfc803f9e82 100644
--- a/sdk/lib/_internal/pub/test/global/activate/supports_version_solver_backtracking_test.dart
+++ b/sdk/lib/_internal/pub/test/global/binstubs/removes_when_deactivated_test.dart
@@ -9,23 +9,28 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('performs verison solver backtracking if necessary', () {
+ integration("removes binstubs when the package is deactivated", () {
servePackages((builder) {
- builder.serve("foo", "1.1.0", pubspec: {
- "environment": {"sdk": ">=0.1.2 <0.2.0"}
- });
- builder.serve("foo", "1.2.0", pubspec: {
- "environment": {"sdk": ">=0.1.3 <0.2.0"}
- });
+ builder.serve("foo", "1.0.0", pubspec: {
+ "executables": {
+ "one": null,
+ "two": null
+ }
+ }, contents: [
+ d.dir("bin", [
+ d.file("one.dart", "main(args) => print('one');"),
+ d.file("two.dart", "main(args) => print('two');")
+ ])
+ ]);
});
schedulePub(args: ["global", "activate", "foo"]);
+ schedulePub(args: ["global", "deactivate", "foo"]);
- // foo 1.2.0 won't be picked because its SDK constraint conflicts with the
- // dummy SDK version 0.1.2+3.
d.dir(cachePath, [
- d.dir('global_packages', [
- d.dir('foo', [d.matcherFile('pubspec.lock', contains('1.1.0'))])
+ d.dir("bin", [
+ d.nothing("one"),
+ d.nothing("two")
])
]).validate();
});

Powered by Google App Engine
This is Rietveld 408576698