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

Unified Diff: sdk/lib/_internal/pub/test/install/git/require_pubspec_test.dart

Issue 24246002: Lazily throw pubspec parsing exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 7 years, 3 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/install/git/require_pubspec_test.dart
diff --git a/sdk/lib/_internal/pub/test/install/git/require_pubspec_test.dart b/sdk/lib/_internal/pub/test/install/git/require_pubspec_test.dart
index fd055288b626eb38232d1c6974accb1ab9f85956..1a317e959902cbc39708a497fc57a4f7f16fd7b2 100644
--- a/sdk/lib/_internal/pub/test/install/git/require_pubspec_test.dart
+++ b/sdk/lib/_internal/pub/test/install/git/require_pubspec_test.dart
@@ -18,8 +18,7 @@ main() {
d.appDir({"foo": {"git": "../foo.git"}}).create();
- // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is
- // fixed.
- pubInstall(error: 'Package "foo" doesn\'t have a pubspec.yaml file.');
+ pubInstall(error: new RegExp(r'Could not find a file named "pubspec\.yaml" '
+ r'in "[^\n]*"\.'));
});
}

Powered by Google App Engine
This is Rietveld 408576698