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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java

Issue 10918073: Issue 4881. Resolve new == and []+ operators (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
Index: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index fc4070fed743eb12045b943801882a7357a504d7..b52bd0639704fc6f92fc51e8ced13239510dd4b9 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -584,7 +584,7 @@ public class SyntaxTest extends AbstractParserTest {
" operator() { }",
"}",
"class F {",
- " operator negate () { }",
+ " operator - () { }",
" operator + (arg) { }",
" operator [] (arg) { }",
" operator []= (arg, arg){ }",
@@ -627,7 +627,7 @@ public class SyntaxTest extends AbstractParserTest {
assertEquals("operator", ((DartIdentifier)E_operator.getName()).getName());
DartClass F = (DartClass)unit.getTopLevelNodes().get(5);
DartMethodDefinition F_negate = (DartMethodDefinition)F.getMembers().get(0);
- assertEquals("negate", ((DartIdentifier)F_negate.getName()).getName());
+ assertEquals("-", ((DartIdentifier)F_negate.getName()).getName());
DartMethodDefinition F_plus = (DartMethodDefinition)F.getMembers().get(1);
assertEquals("+", ((DartIdentifier)F_plus.getName()).getName());
DartMethodDefinition F_access = (DartMethodDefinition)F.getMembers().get(2);

Powered by Google App Engine
This is Rietveld 408576698