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

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

Issue 24191008: Report CTEC.CONST_NOT_INITIALIZED (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/StaticWarningCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
index 359a355f2f7f90a699664c9de217dfd775ff0e08..c5ae1f62acbdb4746b09bbaa286f1ca4e0d5f47a 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
@@ -1004,16 +1004,6 @@ public class StaticWarningCodeTest extends ResolverTestCase {
verify(source);
}
- public void test_finalNotInitialized_instanceField_const_static() throws Exception {
- Source source = addSource(createSource(//
- "class A {",
- " static const F;",
- "}"));
- resolve(source);
- assertErrors(source, StaticWarningCode.FINAL_NOT_INITIALIZED);
- verify(source);
- }
-
public void test_finalNotInitialized_instanceField_final() throws Exception {
Source source = addSource(createSource(//
"class A {",
@@ -1034,14 +1024,6 @@ public class StaticWarningCodeTest extends ResolverTestCase {
verify(source);
}
- public void test_finalNotInitialized_library_const() throws Exception {
- Source source = addSource(createSource(//
- "const F;"));
- resolve(source);
- assertErrors(source, StaticWarningCode.FINAL_NOT_INITIALIZED);
- verify(source);
- }
-
public void test_finalNotInitialized_library_final() throws Exception {
Source source = addSource(createSource(//
"final F;"));
@@ -1050,16 +1032,6 @@ public class StaticWarningCodeTest extends ResolverTestCase {
verify(source);
}
- public void test_finalNotInitialized_local_const() throws Exception {
- Source source = addSource(createSource(//
- "f() {",
- " const int x;",
- "}"));
- resolve(source);
- assertErrors(source, StaticWarningCode.FINAL_NOT_INITIALIZED);
- verify(source);
- }
-
public void test_finalNotInitialized_local_final() throws Exception {
Source source = addSource(createSource(//
"f() {",

Powered by Google App Engine
This is Rietveld 408576698