Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: pkg/analysis_server/test/services/completion/keyword_contributor_test.dart

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698