| 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;",
|
|
|