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

Unified Diff: sdk/lib/_internal/pub/test/serve/fails_to_load_a_pubspec_with_reserved_transformer_config_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/serve/fails_to_load_a_pubspec_with_reserved_transformer_config_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/fails_to_load_a_pubspec_with_reserved_transformer_config_test.dart b/sdk/lib/_internal/pub/test/serve/fails_to_load_a_pubspec_with_reserved_transformer_config_test.dart
index 5ba03d8353992149139f163dcd1ecf6cc99b0c02..06762d8dcbd95b531ef37e72c5b3767a14f8f3d5 100644
--- a/sdk/lib/_internal/pub/test/serve/fails_to_load_a_pubspec_with_reserved_transformer_config_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/fails_to_load_a_pubspec_with_reserved_transformer_config_test.dart
@@ -27,10 +27,11 @@ main() {
createLockFile('myapp', pkg: ['barback']);
var pub = startPub(args: ['serve', '--port=0']);
- expect(pub.nextErrLine(), completion(startsWith('Could not parse ')));
- expect(pub.nextErrLine(), completion(equals('Configuration for '
- 'transformer myapp/src/transformer may not include reserved key '
- '"include".')));
+ expect(pub.nextErrLine(), completion(equals('Error in pubspec for package '
+ '"myapp" loaded from pubspec.yaml:')));
+ expect(pub.nextErrLine(), completion(equals('Invalid transformer '
+ 'identifier for "transformers.myapp/src/transformer": Transformer '
+ 'configuration may not include reserved key "include".')));
pub.shouldExit(1);
});
}

Powered by Google App Engine
This is Rietveld 408576698