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

Unified Diff: sdk/lib/_internal/pub/test/get/hosted/stay_locked_if_new_is_satisfied_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/stay_locked_if_new_is_satisfied_test.dart
diff --git a/sdk/lib/_internal/pub/test/get/hosted/stay_locked_if_new_is_satisfied_test.dart b/sdk/lib/_internal/pub/test/get/hosted/stay_locked_if_new_is_satisfied_test.dart
index c3aa7f4f9f0c588051b6363a82d4f2df99d79b47..868f8583c3c5780c372a754163ca2bf1384c6e6d 100644
--- a/sdk/lib/_internal/pub/test/get/hosted/stay_locked_if_new_is_satisfied_test.dart
+++ b/sdk/lib/_internal/pub/test/get/hosted/stay_locked_if_new_is_satisfied_test.dart
@@ -11,11 +11,11 @@ main() {
initConfig();
integration("doesn't unlock dependencies if a new dependency is already "
"satisfied", () {
- servePackages([
- packageMap("foo", "1.0.0", {"bar": "<2.0.0"}),
- packageMap("bar", "1.0.0", {"baz": "<2.0.0"}),
- packageMap("baz", "1.0.0")
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "1.0.0", deps: {"bar": "<2.0.0"});
+ builder.serve("bar", "1.0.0", deps: {"baz": "<2.0.0"});
+ builder.serve("baz", "1.0.0");
+ });
d.appDir({"foo": "any"}).create();
@@ -27,12 +27,12 @@ main() {
"baz": "1.0.0"
}).validate();
- servePackages([
- packageMap("foo", "2.0.0", {"bar": "<3.0.0"}),
- packageMap("bar", "2.0.0", {"baz": "<3.0.0"}),
- packageMap("baz", "2.0.0"),
- packageMap("newdep", "2.0.0", {"baz": ">=1.0.0"})
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "2.0.0", deps: {"bar": "<3.0.0"});
+ builder.serve("bar", "2.0.0", deps: {"baz": "<3.0.0"});
+ builder.serve("baz", "2.0.0");
+ builder.serve("newdep", "2.0.0", deps: {"baz": ">=1.0.0"});
+ });
d.appDir({"foo": "any", "newdep": "any"}).create();

Powered by Google App Engine
This is Rietveld 408576698