| 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 092611d389325ba7f21e0359d650419f7db1cad0..44044619461a1523694538f4eaf3710bfd31c5e8 100644 | 
| --- a/sdk/lib/_internal/pub/test/pubspec_test.dart | 
| +++ b/sdk/lib/_internal/pub/test/pubspec_test.dart | 
| @@ -214,6 +214,15 @@ version: not version | 
| expectFormatError('{author: abe, authors: ted}'); | 
| }); | 
|  | 
| +    test("throws if a transformer isn't a string or map", () { | 
| +      expectFormatError('{transformers: 12}'); | 
| +      expectFormatError('{transformers: [12]}'); | 
| +    }); | 
| + | 
| +    test("throws if a transformer's configuration isn't a map", () { | 
| +      expectFormatError('{transformers: {pkg: 12}}'); | 
| +    }); | 
| + | 
| test("allows comment-only files", () { | 
| var pubspec = new Pubspec.parse(null, ''' | 
| # No external dependencies yet | 
|  |