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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ComplexParserTest.java

Issue 18140004: Report EQUALITY_CANNOT_BE_EQUALITY_OPERAND (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Additional test Created 7 years, 6 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ComplexParserTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ComplexParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ComplexParserTest.java
index 5103fe4f3fdfcd55d3ff79f199cc994272da1f45..d30d5dc6ce87aedc46f323d679972bcd8db7141a 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ComplexParserTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ComplexParserTest.java
@@ -221,7 +221,9 @@ public class ComplexParserTest extends ParserTestCase {
}
public void test_equalityExpression_normal() throws Exception {
- BinaryExpression expression = parseExpression("x == y != z");
+ BinaryExpression expression = parseExpression(
+ "x == y != z",
+ ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND);
assertInstanceOf(BinaryExpression.class, expression.getLeftOperand());
}
@@ -236,7 +238,9 @@ public class ComplexParserTest extends ParserTestCase {
}
public void test_equalityExpression_super() throws Exception {
- BinaryExpression expression = parseExpression("super == y != z");
+ BinaryExpression expression = parseExpression(
+ "super == y != z",
+ ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND);
assertInstanceOf(BinaryExpression.class, expression.getLeftOperand());
}

Powered by Google App Engine
This is Rietveld 408576698