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

Unified Diff: sdk/lib/_internal/pub/test/unknown_source_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/unknown_source_test.dart
diff --git a/sdk/lib/_internal/pub/test/unknown_source_test.dart b/sdk/lib/_internal/pub/test/unknown_source_test.dart
index 6b0cde0ee1e6fa528e4c226b80ea25a3575721e6..511b795fae7b06e5807b99162ea852b544e41e22 100644
--- a/sdk/lib/_internal/pub/test/unknown_source_test.dart
+++ b/sdk/lib/_internal/pub/test/unknown_source_test.dart
@@ -17,8 +17,8 @@ main() {
integration('fails gracefully on a dependency from an unknown source', () {
d.appDir([{"bad": "foo"}]).create();
- pubCommand(command, error: new RegExp(
- "Package 'myapp' depends on 'foo' from unknown source 'bad'.\$"));
+ pubCommand(command, error:
+ "Package 'myapp' depends on 'foo' from unknown source 'bad'.");
});
integration('fails gracefully on transitive dependency from an unknown '
@@ -30,8 +30,8 @@ main() {
d.appDir([{"path": "../foo"}]).create();
- pubCommand(command, error: new RegExp(
- "Package 'foo' depends on 'bar' from unknown source 'bad'.\$"));
+ pubCommand(command, error:
+ "Package 'foo' depends on 'bar' from unknown source 'bad'.");
});
integration('ignores unknown source in lockfile', () {
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/_internal/pub/test/update/git/do_not_update_if_unneeded_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698