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

Unified Diff: sdk/lib/_internal/pub/test/cache/add/no_matching_version_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/cache/add/no_matching_version_test.dart
diff --git a/sdk/lib/_internal/pub/test/cache/add/no_matching_version_test.dart b/sdk/lib/_internal/pub/test/cache/add/no_matching_version_test.dart
index 2f8cc3531003126e3b898fe48f8d71d8695f0029..53fd3c573d3aa036378068d2036f215975825070 100644
--- a/sdk/lib/_internal/pub/test/cache/add/no_matching_version_test.dart
+++ b/sdk/lib/_internal/pub/test/cache/add/no_matching_version_test.dart
@@ -9,10 +9,10 @@ import '../../test_pub.dart';
main() {
initConfig();
integration('fails if no version matches the version constraint', () {
- servePackages([
- packageMap("foo", "1.2.2"),
- packageMap("foo", "1.2.3")
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "1.2.2");
+ builder.serve("foo", "1.2.3");
+ });
schedulePub(args: ["cache", "add", "foo", "-v", ">2.0.0"],
error: 'Package foo has no versions that match >2.0.0.',

Powered by Google App Engine
This is Rietveld 408576698