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

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

Issue 16034002: Use helper methods for running pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Get rid of unnecessary RegExps in tests. Created 7 years, 7 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/hosted/offline_test.dart
diff --git a/sdk/lib/_internal/pub/test/hosted/offline_test.dart b/sdk/lib/_internal/pub/test/hosted/offline_test.dart
index eaca7f2ae455a56f2c32a9800500acd0f7da96d0..3019a6b6e007aaeccd47322a9dbb396de6599f1c 100644
--- a/sdk/lib/_internal/pub/test/hosted/offline_test.dart
+++ b/sdk/lib/_internal/pub/test/hosted/offline_test.dart
@@ -50,7 +50,7 @@ main() {
]).create();
pubCommand(command, args: ['--offline'],
- error: new RegExp('Could not find package "foo" in cache'));
+ error: 'Could not find package "foo" in cache.');
});
integration('fails gracefully no cached versions match', () {
@@ -65,8 +65,9 @@ main() {
dependencyMap("foo", ">2.0.0")
]).create();
- pubCommand(command, args: ['--offline'],
- error: new RegExp("Package 'foo' has no versions that match >2.0.0"));
+ pubCommand(command, args: ['--offline'], error:
+ "Package 'foo' has no versions that match >2.0.0 derived from:\n"
+ "- 'myapp' depends on version >2.0.0");
});
});
}

Powered by Google App Engine
This is Rietveld 408576698