| Index: pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/local_computer_test.dart b/pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| index fed9d0fd324c959561a761e7edfc11c83236e251..e0aca465003f1c90b863f396b26ce62fe5834e42 100644
|
| --- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| @@ -194,15 +194,6 @@ void main() {
|
| assertNotSuggested('x');
|
| }
|
|
|
| - test_overrides() {
|
| - addTestSource('''
|
| -class A {m() {}}
|
| -class B extends A {m() {^}}
|
| -''');
|
| - expect(computeFast(), isTrue);
|
| - assertSuggestMethod('m', 'B', null, relevance: DART_RELEVANCE_LOCAL_METHOD);
|
| - }
|
| -
|
| test_break_ignores_unrelated_statements() {
|
| addTestSource('''
|
| void main() {
|
| @@ -576,6 +567,13 @@ class B extends A {
|
| expect(suggestion.hasNamedParameters, false);
|
| }
|
|
|
| + test_ignore_symbol_being_completed() {
|
| + addTestSource('class MyClass { } main(MC^) { }');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestLocalClass('MyClass');
|
| + assertNotSuggested('MC');
|
| + }
|
| +
|
| test_InstanceCreationExpression() {
|
| addTestSource('''
|
| class A {foo(){var f; {var x;}}}
|
| @@ -743,6 +741,15 @@ class B extends A {
|
| expect(suggestion.hasNamedParameters, false);
|
| }
|
|
|
| + test_overrides() {
|
| + addTestSource('''
|
| +class A {m() {}}
|
| +class B extends A {m() {^}}
|
| +''');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestMethod('m', 'B', null, relevance: DART_RELEVANCE_LOCAL_METHOD);
|
| + }
|
| +
|
| test_shadowed_name() {
|
| addTestSource('var a; class A { var a; m() { ^ } }');
|
| expect(computeFast(), isTrue);
|
|
|