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

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

Issue 29283003: Fix issue 12654 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments 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/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 dd06ce1463ede3c0a60200e5725bf5ea2f90272a..c3f3d8441e97715c0345d44eb18fc3d2e9f3fd50 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
@@ -1118,6 +1118,37 @@ public class StaticWarningCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_functionWithoutCall_direct() throws Exception {
+ Source source = addSource(createSource(//
+ "class A implements Function {",
+ "}"));
+ resolve(source);
+ assertErrors(source, StaticWarningCode.FUNCTION_WITHOUT_CALL);
+ verify(source);
+ }
+
+ public void test_functionWithoutCall_indirect_extends() throws Exception {
+ Source source = addSource(createSource(//
+ "abstract class A implements Function {",
+ "}",
+ "class B extends A {",
+ "}"));
+ resolve(source);
+ assertErrors(source, StaticWarningCode.FUNCTION_WITHOUT_CALL);
+ verify(source);
+ }
+
+ public void test_functionWithoutCall_indirect_implements() throws Exception {
+ Source source = addSource(createSource(//
+ "abstract class A implements Function {",
+ "}",
+ "class B implements A {",
+ "}"));
+ resolve(source);
+ assertErrors(source, StaticWarningCode.FUNCTION_WITHOUT_CALL);
+ verify(source);
+ }
+
public void test_importDuplicatedLibraryName() throws Exception {
Source source = addSource(createSource(//
"library test;",

Powered by Google App Engine
This is Rietveld 408576698