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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java

Issue 14698003: Report CTEC.MULTIPLE_SUPER_INITIALIZERS (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/resolver/CompileTimeErrorCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
index 2ba64afc8e59e6ec1c79a7694769863cd505ef4c..96716aae8f5e30d4b0c6c535eb3bbc038f2f07bd 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
@@ -344,17 +344,6 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
- public void fail_multipleSuperInitializers() throws Exception {
- Source source = addSource(createSource(//
- "class A {}",
- "class B extends A {",
- " B() : super(), super() {}",
- "}"));
- resolve(source);
- assertErrors(CompileTimeErrorCode.MULTIPLE_SUPER_INITIALIZERS);
- verify(source);
- }
-
public void fail_nonConstantDefaultValue_named() throws Exception {
Source source = addSource(createSource(//
"f({x : 2 + 3}) {}"));
@@ -1729,6 +1718,17 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_multipleSuperInitializers() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {}",
+ "class B extends A {",
+ " B() : super(), super() {}",
+ "}"));
+ resolve(source);
+ assertErrors(CompileTimeErrorCode.MULTIPLE_SUPER_INITIALIZERS);
+ verify(source);
+ }
+
public void test_nativeFunctionBodyInNonSDKCode_function() throws Exception {
// TODO(jwren) Move this test somewhere else: This test verifies a parser error code is generated
// through the ErrorVerifier, it is not a CompileTimeErrorCode.

Powered by Google App Engine
This is Rietveld 408576698