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 882efd911a78ef58f18bcd1edb24c93d25c8bd7e..043e89c1c85c7f338ae8a5e693cf5b567b03afb8 100644 |
--- a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart |
@@ -4,7 +4,7 @@ |
library test.services.completion.dart.keyword; |
-import 'package:analysis_server/src/protocol.dart'; |
+import 'package:analysis_server/plugin/protocol/protocol.dart'; |
import 'package:analysis_server/src/services/completion/dart_completion_manager.dart'; |
import 'package:analysis_server/src/services/completion/keyword_contributor.dart'; |
import 'package:analyzer/src/generated/scanner.dart'; |
@@ -430,6 +430,16 @@ class KeywordContributorTest extends AbstractCompletionTest { |
relevance: DART_RELEVANCE_HIGH); |
} |
+ test_catch() { |
+ addTestSource('main() {try {} catch (e) {^}}}'); |
+ expect(computeFast(), isTrue); |
+ var keywords = <Keyword>[]; |
+ keywords.addAll(STMT_START_OUTSIDE_CLASS); |
+ keywords.add(Keyword.RETHROW); |
+ assertSuggestKeywords(keywords, |
+ relevance: DART_RELEVANCE_KEYWORD); |
+ } |
+ |
test_class() { |
addTestSource('class A e^ { }'); |
expect(computeFast(), isTrue); |
@@ -607,16 +617,6 @@ class KeywordContributorTest extends AbstractCompletionTest { |
relevance: DART_RELEVANCE_KEYWORD); |
} |
- test_catch() { |
- addTestSource('main() {try {} catch (e) {^}}}'); |
- expect(computeFast(), isTrue); |
- var keywords = <Keyword>[]; |
- keywords.addAll(STMT_START_OUTSIDE_CLASS); |
- keywords.add(Keyword.RETHROW); |
- assertSuggestKeywords(keywords, |
- relevance: DART_RELEVANCE_KEYWORD); |
- } |
- |
test_for_break_continue2() { |
addTestSource('class A {foo() {for (int x in myList) {^}}}'); |
expect(computeFast(), isTrue); |