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

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

Issue 41273002: VM and dart2js both support ne mixin syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Try to upload. 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 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;",

Powered by Google App Engine
This is Rietveld 408576698