| Index: pkg/analyzer/test/error_test.dart
|
| diff --git a/pkg/analyzer/test/error_test.dart b/pkg/analyzer/test/error_test.dart
|
| index 4a513d95c67e0f92f3f2fa25232db1586c8caf7e..7a91029f038a897f64a389a099d399ad941e38aa 100644
|
| --- a/pkg/analyzer/test/error_test.dart
|
| +++ b/pkg/analyzer/test/error_test.dart
|
| @@ -15,48 +15,33 @@ void main() {
|
|
|
| test("an error on the first line", () {
|
| expect(errorsForFile('void foo;\n'),
|
| - equals('Error on line 1 of test.dart: ...\n'
|
| - 'void foo;\n'
|
| - '^^^^\n'));
|
| + equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error on the last line", () {
|
| expect(errorsForFile('\nvoid foo;'),
|
| - equals('Error on line 2 of test.dart: ...\n'
|
| - 'void foo;\n'
|
| - '^^^^\n'));
|
| + equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error in the middle", () {
|
| expect(errorsForFile('\nvoid foo;\n'),
|
| - equals('Error on line 2 of test.dart: ...\n'
|
| - 'void foo;\n'
|
| - '^^^^\n'));
|
| + equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| var veryLongString = new List.filled(107, ' ').join('');
|
|
|
| test("an error at the end of a very long line", () {
|
| expect(errorsForFile('$veryLongString void foo;'),
|
| - equals('Error on line 1 of test.dart: ...\n'
|
| - '...$veryLongString void foo;\n'
|
| - '$veryLongString ^^^^\n'));
|
| + equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error at the beginning of a very long line", () {
|
| expect(errorsForFile('void foo; $veryLongString'),
|
| - equals('Error on line 1 of test.dart: ...\n'
|
| - 'void foo; $veryLongString...\n'
|
| - '^^^^\n'));
|
| + equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error in the middle of a very long line", () {
|
| expect(errorsForFile('$veryLongString void foo;$veryLongString'),
|
| - equals('Error on line 1 of test.dart: ...\n'
|
| - '... '
|
| - 'void foo; '
|
| - '...\n'
|
| - ' '
|
| - '^^^^\n'));
|
| + equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
| }
|
|
|