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

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

Issue 17612005: Report MISSING_ASSIGNABLE_SELECTOR for postfix and literal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/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 ce589f391eb710717dbec5a02146fa94e09f3e4a..6d62cab22780215bd01ac81b32731f8a4f4318f4 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
@@ -763,6 +763,22 @@ 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);
+ }
+
+ public void test_missingAssignableSelector_prefix_plusPlus_literal() throws Exception {
+ parseExpression("++0", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
+ }
+
public void test_missingAssignableSelector_primarySelectorPostfix() throws Exception {
parseExpression("x(y)(z)++", ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR);
}

Powered by Google App Engine
This is Rietveld 408576698