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

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

Issue 27179004: Issue 12103. It is warning to provide wrong number of type arguments for list/map literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Non-error tests. Created 7 years, 2 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 9abb8a57042bdfcbe6036caf9fcd043f9299a2e4..e51d1bdc8c43a5779071c9db5b7587b42e7e03d0 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
@@ -16,8 +16,6 @@ package com.google.dart.engine.parser;
import com.google.dart.engine.ast.CompilationUnit;
import com.google.dart.engine.ast.Expression;
import com.google.dart.engine.ast.FunctionExpression;
-import com.google.dart.engine.ast.ListLiteral;
-import com.google.dart.engine.ast.MapLiteral;
import com.google.dart.engine.ast.MethodInvocation;
import com.google.dart.engine.ast.SimpleIdentifier;
import com.google.dart.engine.ast.StringLiteral;
@@ -485,14 +483,6 @@ public class ErrorParserTest extends ParserTestCase {
parse("parseStringLiteral", "'$x$'", ParserErrorCode.MISSING_IDENTIFIER);
}
- public void test_expectedOneListTypeArguments_two() throws Exception {
- Expression expression = parse(
- "parsePrimaryExpression",
- "<int, int>[]",
- ParserErrorCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS);
- assertInstanceOf(ListLiteral.class, expression);
- }
-
public void test_expectedStringLiteral() throws Exception {
StringLiteral expression = parse(
"parseStringLiteral",
@@ -526,22 +516,6 @@ public class ErrorParserTest extends ParserTestCase {
parseStatement("do {} (x);", ParserErrorCode.EXPECTED_TOKEN);
}
- public void test_expectedTwoMapTypeArguments_one() throws Exception {
- Expression expression = parse(
- "parsePrimaryExpression",
- "<int>{}",
- ParserErrorCode.EXPECTED_TWO_MAP_TYPE_ARGUMENTS);
- assertInstanceOf(MapLiteral.class, expression);
- }
-
- public void test_expectedTwoMapTypeArguments_three() throws Exception {
- Expression expression = parse(
- "parsePrimaryExpression",
- "<int, int, int>{}",
- ParserErrorCode.EXPECTED_TWO_MAP_TYPE_ARGUMENTS);
- assertInstanceOf(MapLiteral.class, expression);
- }
-
public void test_expectedTypeName_is() throws Exception {
parseExpression("x is", ParserErrorCode.EXPECTED_TYPE_NAME);
}

Powered by Google App Engine
This is Rietveld 408576698