| Index: tests/compiler/dart2js/parser_test.dart
|
| diff --git a/tests/compiler/dart2js/parser_test.dart b/tests/compiler/dart2js/parser_test.dart
|
| index 25e660df4db518da64adb919df9a39e3944350ef..5cff043d2b470b9b1d30df3d995abf245a7a45c4 100644
|
| --- a/tests/compiler/dart2js/parser_test.dart
|
| +++ b/tests/compiler/dart2js/parser_test.dart
|
| @@ -255,12 +255,11 @@ void testPostfix() {
|
| }
|
|
|
| void testOperatorParse() {
|
| - FunctionDeclaration node = parseStatement('operator negate() => null;');
|
| - FunctionExpression function = node.function;
|
| + FunctionExpression function = parseMember('operator -() => null;');
|
| Send name = function.name.asSend();
|
| Expect.isNotNull(name);
|
| Expect.stringEquals('operator', name.receiver.source.stringValue);
|
| - Expect.equals(buildSourceString('negate'), name.selector.source);
|
| + Expect.stringEquals('-', name.selector.source.stringValue);
|
| Expect.isTrue(function.parameters.isEmpty());
|
| Expect.isNull(function.returnType);
|
| Expect.isNull(function.getOrSet);
|
|
|