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

Unified Diff: sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart

Issue 494943002: Don't load assets unnecessarily when precompiling 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/get/hosted/do_not_upgrade_on_removed_constraints_test.dart
diff --git a/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart b/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart
index 45808d554021fc3fc8155f303171daf01e61a6c9..9c65587ddcbfbbd9b835894a71dbea531b04c99a 100644
--- a/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart
+++ b/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart
@@ -11,12 +11,12 @@ main() {
initConfig();
integration("doesn't upgrade dependencies whose constraints have been "
"removed", () {
- servePackages([
- packageMap("foo", "1.0.0", {"shared-dep": "any"}),
- packageMap("bar", "1.0.0", {"shared-dep": "<2.0.0"}),
- packageMap("shared-dep", "1.0.0"),
- packageMap("shared-dep", "2.0.0")
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "1.0.0", deps: {"shared-dep": "any"});
+ builder.serve("bar", "1.0.0", deps: {"shared-dep": "<2.0.0"});
+ builder.serve("shared-dep", "1.0.0");
+ builder.serve("shared-dep", "2.0.0");
+ });
d.appDir({"foo": "any", "bar": "any"}).create();

Powered by Google App Engine
This is Rietveld 408576698