| Index: dart/tests/compiler/dart2js/parser_test.dart
|
| diff --git a/dart/tests/compiler/dart2js/parser_test.dart b/dart/tests/compiler/dart2js/parser_test.dart
|
| index a1f4ab269c27f4c4117cd5f653fa3e856436cfe5..552692281b8d5deeb3715bda5bfd657812063fce 100644
|
| --- a/dart/tests/compiler/dart2js/parser_test.dart
|
| +++ b/dart/tests/compiler/dart2js/parser_test.dart
|
| @@ -276,6 +276,12 @@ class Collector implements DiagnosticListener {
|
| throw this;
|
| }
|
|
|
| + void reportError(Token token,
|
| + messageKind,
|
| + [Map arguments = const {}]) {
|
| + reportFatalError(token, messageKind, arguments);
|
| + }
|
| +
|
| void log(message) {
|
| print(message);
|
| }
|
| @@ -302,7 +308,7 @@ void testMissingCloseBraceInClass() {
|
| fullParseUnit(source, diagnosticHandler: new Collector());
|
| }
|
| check(Collector c) {
|
| - Expect.equals(EOF_TOKEN, c.token);
|
| + Expect.equals(BAD_INPUT_TOKEN, c.token);
|
| return true;
|
| }
|
| Expect.throws(parse, check);
|
|
|