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

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

Issue 137813006: Fix for issue 15471 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/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 8bc117ff481a3656b0d4e0cacabf219510743e94..f89fe9e77f5ac3f895e8338eb0ae8b08a9b51ded 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
@@ -708,6 +708,23 @@ public class ErrorParserTest extends ParserTestCase {
ParserErrorCode.GETTER_WITH_PARAMETERS);
}
+ public void test_illegalAssignmentToNonAssignable_postfix_minusMinus_literal() throws Exception {
+ parseExpression("0--", ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE);
+ }
+
+ public void test_illegalAssignmentToNonAssignable_postfix_plusPlus_literal() throws Exception {
+ parseExpression("0++", ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE);
+ }
+
+ public void test_illegalAssignmentToNonAssignable_postfix_plusPlus_parethesized()
+ throws Exception {
+ parseExpression("(x)++", ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE);
+ }
+
+ public void test_illegalAssignmentToNonAssignable_primarySelectorPostfix() throws Exception {
+ parseExpression("x(y)(z)++", ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE);
+ }
+
public void test_illegalAssignmentToNonAssignable_superAssigned() throws Exception {
// TODO(brianwilkerson) When the test fail_illegalAssignmentToNonAssignable_superAssigned starts
// to pass, remove this test (there should only be one error generated, but we're keeping this
@@ -830,14 +847,6 @@ public class ErrorParserTest extends ParserTestCase {
parseExpression("x.y = y;");
}
- public void test_missingAssignableSelector_postfix_minusMinus_literal() throws Exception {
- parseExpression("0--", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
- }
-
- public void test_missingAssignableSelector_postfix_plusPlus_literal() throws Exception {
- parseExpression("0++", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
- }
-
public void test_missingAssignableSelector_prefix_minusMinus_literal() throws Exception {
parseExpression("--0", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
}
@@ -846,10 +855,6 @@ public class ErrorParserTest extends ParserTestCase {
parseExpression("++0", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
}
- public void test_missingAssignableSelector_primarySelectorPostfix() throws Exception {
- parseExpression("x(y)(z)++", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
- }
-
public void test_missingAssignableSelector_selector() throws Exception {
parseExpression("x(y)(z).a++");
}

Powered by Google App Engine
This is Rietveld 408576698