| 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 e51d1bdc8c43a5779071c9db5b7587b42e7e03d0..a453626b03ae195e698aa4add507f92321d35c19 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
|
| @@ -32,20 +32,6 @@ import static com.google.dart.engine.scanner.TokenFactory.token;
|
| * that errors are correctly reported, and in some cases, not reported.
|
| */
|
| public class ErrorParserTest extends ParserTestCase {
|
| - public void fail_deprecatedClassTypeAlias() throws Exception {
|
| - // TODO(scheglov) report error when VM and dart2js start to accept new syntax
|
| - parseCompilationUnit(
|
| - "typedef C = abstract S with M;",
|
| - ParserErrorCode.DEPRECATED_CLASS_TYPE_ALIAS);
|
| - }
|
| -
|
| - public void fail_deprecatedClassTypeAlias_withGeneric() throws Exception {
|
| - // TODO(scheglov) report error when VM and dart2js start to accept new syntax
|
| - parseCompilationUnit(
|
| - "typedef C<T> = abstract S<T> with M;",
|
| - ParserErrorCode.DEPRECATED_CLASS_TYPE_ALIAS);
|
| - }
|
| -
|
| public void fail_expectedListOrMapLiteral() throws Exception {
|
| // It isn't clear that this test can ever pass. The parser is currently create a synthetic list
|
| // literal in this case, but isSynthetic() isn't overridden for ListLiteral. The problem is that
|
| @@ -354,6 +340,18 @@ public class ErrorParserTest extends ParserTestCase {
|
| parse("parseWhileStatement", "while (a) { switch (b) {default: continue;}}");
|
| }
|
|
|
| + public void test_deprecatedClassTypeAlias() throws Exception {
|
| + parseCompilationUnit(
|
| + "typedef C = abstract S with M;",
|
| + ParserErrorCode.DEPRECATED_CLASS_TYPE_ALIAS);
|
| + }
|
| +
|
| + public void test_deprecatedClassTypeAlias_withGeneric() throws Exception {
|
| + parseCompilationUnit(
|
| + "typedef C<T> = abstract S<T> with M;",
|
| + ParserErrorCode.DEPRECATED_CLASS_TYPE_ALIAS);
|
| + }
|
| +
|
| public void test_directiveAfterDeclaration_classBeforeDirective() throws Exception {
|
| CompilationUnit unit = parseCompilationUnit(
|
| "class Foo{} library l;",
|
|
|