Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: tests/compiler/dart2js/parser_test.dart

Issue 10911206: Remove support for operator negate and replace occurrences with unary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mirrors_test.dart ('k') | tests/language/condition_bailout_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/compiler/dart2js/mirrors_test.dart ('k') | tests/language/condition_bailout_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698