| Index: sdk/lib/_internal/pub/test/pubspec_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/pubspec_test.dart b/sdk/lib/_internal/pub/test/pubspec_test.dart
|
| index a9d777983ca9d34df605f5c2eb2d1968b431363a..afc04684f7f6e62cad108187960e3cdfbc3930ad 100644
|
| --- a/sdk/lib/_internal/pub/test/pubspec_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/pubspec_test.dart
|
| @@ -195,6 +195,18 @@ dependencies:
|
| (pubspec) => pubspec.transformers);
|
| });
|
|
|
| + test("throws if a transformer's configuration contains a top-level key "
|
| + "beginning with a dollar sign", () {
|
| + expectPubspecException('transformers: {pkg: {\$key: value}}',
|
| + (pubspec) => pubspec.transformers);
|
| + });
|
| +
|
| + test("doesn't throw if a transformer's configuration contains a "
|
| + "non-top-level key beginning with a dollar sign", () {
|
| + expectPubspecException('transformers: {pkg: {\$key: value}}',
|
| + (pubspec) => pubspec.transformers);
|
| + });
|
| +
|
| test("allows comment-only files", () {
|
| var pubspec = new Pubspec.parse('''
|
| # No external dependencies yet
|
|
|