| Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickAssistProcessorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickAssistProcessorTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickAssistProcessorTest.java
|
| index ba99796dad617e2eb8baf998315e0cf79c785cfc..aa80396b546a5abbb2c118d453ad53da9ccc0460 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickAssistProcessorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickAssistProcessorTest.java
|
| @@ -43,6 +43,10 @@ public final class QuickAssistProcessorTest extends AbstractDartTest {
|
| private IProblemLocation problemLocations[] = NO_PROBLEMS;
|
| private int selectionLength = 0;
|
|
|
| + public void test_addTypeAnnotation_classField_OK_final() throws Exception {
|
| + assert_addTypeAnnotation_classField("final v = 1;", " = 1", "final int v = 1;");
|
| + }
|
| +
|
| public void test_addTypeAnnotation_classField_OK_int() throws Exception {
|
| assert_addTypeAnnotation_classField("var v = 1;", " = 1", "int v = 1;");
|
| }
|
| @@ -98,6 +102,11 @@ public final class QuickAssistProcessorTest extends AbstractDartTest {
|
| assert_addTypeAnnotation_topLevelField(source, "var ", source);
|
| }
|
|
|
| + public void test_addTypeAnnotation_topLevelField_wrong_noValue() throws Exception {
|
| + String source = "var v;";
|
| + assert_addTypeAnnotation_topLevelField(source, "var ", source);
|
| + }
|
| +
|
| public void test_convertToBlockBody_OK_onMethodName() throws Exception {
|
| String initial = makeSource(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|