| Index: pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| index 07491ce6960e295387ab5dca9e692defb5c0bd10..6e12b911f588ce5c0ebf5ab8414563b6637f10a1 100644
|
| --- a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| @@ -802,35 +802,40 @@ class A {
|
| addTestSource('import "foo" d^ import');
|
| expect(computeFast(), isTrue);
|
| assertSuggestKeywords([Keyword.AS],
|
| - pseudoKeywords: ['deferred as', 'show', 'hide'], relevance: DART_RELEVANCE_HIGH);
|
| + pseudoKeywords: ['deferred as', 'show', 'hide'],
|
| + relevance: DART_RELEVANCE_HIGH);
|
| }
|
|
|
| test_import_deferred_as() {
|
| addTestSource('import "foo" ^;');
|
| expect(computeFast(), isTrue);
|
| assertSuggestKeywords([Keyword.AS],
|
| - pseudoKeywords: ['deferred as', 'show', 'hide'], relevance: DART_RELEVANCE_HIGH);
|
| + pseudoKeywords: ['deferred as', 'show', 'hide'],
|
| + relevance: DART_RELEVANCE_HIGH);
|
| }
|
|
|
| test_import_deferred_as2() {
|
| addTestSource('import "foo" d^;');
|
| expect(computeFast(), isTrue);
|
| assertSuggestKeywords([Keyword.AS],
|
| - pseudoKeywords: ['deferred as', 'show', 'hide'], relevance: DART_RELEVANCE_HIGH);
|
| + pseudoKeywords: ['deferred as', 'show', 'hide'],
|
| + relevance: DART_RELEVANCE_HIGH);
|
| }
|
|
|
| test_import_deferred_as3() {
|
| addTestSource('import "foo" ^');
|
| expect(computeFast(), isTrue);
|
| assertSuggestKeywords([Keyword.AS],
|
| - pseudoKeywords: ['deferred as', 'show', 'hide'], relevance: DART_RELEVANCE_HIGH);
|
| + pseudoKeywords: ['deferred as', 'show', 'hide'],
|
| + relevance: DART_RELEVANCE_HIGH);
|
| }
|
|
|
| test_import_deferred_as4() {
|
| addTestSource('import "foo" d^');
|
| expect(computeFast(), isTrue);
|
| assertSuggestKeywords([Keyword.AS],
|
| - pseudoKeywords: ['deferred as', 'show', 'hide'], relevance: DART_RELEVANCE_HIGH);
|
| + pseudoKeywords: ['deferred as', 'show', 'hide'],
|
| + relevance: DART_RELEVANCE_HIGH);
|
| }
|
|
|
| test_import_deferred_not() {
|
| @@ -840,6 +845,13 @@ class A {
|
| pseudoKeywords: ['show', 'hide'], relevance: DART_RELEVANCE_HIGH);
|
| }
|
|
|
| + test_import_incomplete() {
|
| + addTestSource('import "^"');
|
| + expect(computeFast(), isTrue);
|
| + assertNoSuggestions();
|
| + assertSuggestKeywords([]);
|
| + }
|
| +
|
| test_library() {
|
| addTestSource('library foo;^');
|
| expect(computeFast(), isTrue);
|
|
|