Chromium Code Reviews| Index: pkg/intl/test/message_extraction/failed_extraction_test.dart |
| diff --git a/pkg/intl/test/message_extraction/failed_extraction_test.dart b/pkg/intl/test/message_extraction/failed_extraction_test.dart |
| index 430a43fd4d72de842f6763bc50ce039f76e0e802..6b3d9dfc890a08e3fc79ae9b2107fc632a628d68 100644 |
| --- a/pkg/intl/test/message_extraction/failed_extraction_test.dart |
| +++ b/pkg/intl/test/message_extraction/failed_extraction_test.dart |
| @@ -13,7 +13,11 @@ main() { |
| }); |
| } |
| -void runTestWithWarnings({bool warningsAreErrors, int expectedExitCode}) { |
| +const defaultFiles = |
| + const ["sample_with_messages.dart", "part_of_sample_with_messages.dart"]; |
|
tjblasi
2014/12/02 19:21:51
+2sp
|
| + |
| +void runTestWithWarnings({bool warningsAreErrors, int expectedExitCode, |
| + bool embeddedPlurals: true, List<String> sourceFiles: defaultFiles}) { |
| void verify(ProcessResult result) { |
| try { |
| @@ -29,8 +33,10 @@ void runTestWithWarnings({bool warningsAreErrors, int expectedExitCode}) { |
| if (warningsAreErrors) { |
| args.add('--warnings-are-errors'); |
| } |
| - var files = [asTempDirPath("sample_with_messages.dart"), asTempDirPath( |
| - "part_of_sample_with_messages.dart"),]; |
| + if (!embeddedPlurals) { |
| + args.add('--no-embedded-plurals'); |
| + } |
| + var files = sourceFiles.map(asTempDirPath).toList(); |
| var allArgs = [program] |
| ..addAll(args) |
| ..addAll(files); |