| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| index ff881444bd7ca2481d069c814871e10937489f39..0b2ef2ccedfba545a55216649316d0537fffe586 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
|
| @@ -379,6 +379,18 @@ public class ErrorParserTest extends ParserTestCase {
|
| ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT);
|
| }
|
|
|
| + public void test_equalityCannotBeEqualityOperand_eq_eq() throws Exception {
|
| + parseExpression("1 == 2 == 3", ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND);
|
| + }
|
| +
|
| + public void test_equalityCannotBeEqualityOperand_eq_neq() throws Exception {
|
| + parseExpression("1 == 2 != 3", ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND);
|
| + }
|
| +
|
| + public void test_equalityCannotBeEqualityOperand_neq_eq() throws Exception {
|
| + parseExpression("1 != 2 == 3", ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND);
|
| + }
|
| +
|
| public void test_expectedCaseOrDefault() throws Exception {
|
| parse("parseSwitchStatement", "switch (e) {break;}", ParserErrorCode.EXPECTED_CASE_OR_DEFAULT);
|
| }
|
|
|