| Index: dart/tools/testing/dart/multitest.dart
|
| ===================================================================
|
| --- dart/tools/testing/dart/multitest.dart (revision 4517)
|
| +++ dart/tools/testing/dart/multitest.dart (working copy)
|
| @@ -70,7 +70,7 @@
|
| Set<String> validMultitestOutcomes = new Set<String>.from(
|
| ['compile-time error', 'runtime error',
|
| 'static type error', 'dynamic type error', '']);
|
| -
|
| +
|
| List<String> testTemplate = new List<String>();
|
| testTemplate.add('// Test created from multitest named $filename.');
|
| // Create the set of multitests, which will have a new test added each
|
| @@ -107,7 +107,7 @@
|
| // Add the template, with no multitest lines, as a test with key 'none'.
|
| testsAsLines['none'] = testTemplate;
|
| outcomes['none'] = '';
|
| -
|
| +
|
| // Copy all the tests into the output map tests, as multiline strings.
|
| for (String key in testsAsLines.getKeys()) {
|
| tests[key] =
|
| @@ -117,6 +117,7 @@
|
|
|
|
|
| void DoMultitest(String filename,
|
| + String component,
|
| String outputDir,
|
| String testDir,
|
| Function doTest(String filename,
|
| @@ -145,8 +146,8 @@
|
| openedFile.closeSync();
|
| var outcome = outcomes[key];
|
| bool enableFatalTypeErrors = outcome.contains('static type error');
|
| - bool isNegative = (outcome.contains('compile-time error') ||
|
| - outcome.contains('runtime error'));
|
| + bool isNegative = (outcome.contains('compile-time error')
|
| + || (outcome.contains('runtime error') && (component != 'dartc')));
|
| bool isNegativeIfChecked = outcome.contains('dynamic type error');
|
| doTest(filename,
|
| isNegative,
|
|
|