| Index: pkg/analysis_server/test/services/correction/fix_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| index cc230ca9af9892868d6d6c9ff1121bcf51e2440f..232d5602e352af658a1891214df2c0dd843ae714 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -452,6 +452,15 @@ class B extends A {
|
| assertNoFix(FixKind.CREATE_CONSTRUCTOR_SUPER);
|
| }
|
|
|
| + void test_createField_BAD_inSDK() {
|
| + _indexTestUnit('''
|
| +main(List p) {
|
| + p.foo = 1;
|
| +}
|
| +''');
|
| + assertNoFix(FixKind.CREATE_FIELD);
|
| + }
|
| +
|
| void test_createField_getter_multiLevel() {
|
| _indexTestUnit('''
|
| class A {
|
| @@ -751,6 +760,15 @@ import 'my_file.dart';
|
| expect(fileEdit.edits[0].replacement, contains('library my.file;'));
|
| }
|
|
|
| + void test_createGetter_BAD_inSDK() {
|
| + _indexTestUnit('''
|
| +main(List p) {
|
| + int v = p.foo;
|
| +}
|
| +''');
|
| + assertNoFix(FixKind.CREATE_GETTER);
|
| + }
|
| +
|
| void test_createGetter_multiLevel() {
|
| _indexTestUnit('''
|
| class A {
|
| @@ -2347,6 +2365,15 @@ main() {
|
| ''');
|
| }
|
|
|
| + void test_undefinedMethod_create_BAD_inSDK() {
|
| + _indexTestUnit('''
|
| +main() {
|
| + List.foo();
|
| +}
|
| +''');
|
| + assertNoFix(FixKind.CREATE_METHOD);
|
| + }
|
| +
|
| void test_undefinedMethod_create_generic_BAD() {
|
| _indexTestUnit('''
|
| class A<T> {
|
|
|