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

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

Issue 1410893002: Disable completion in comment text. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/imported_reference_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/imported_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/imported_reference_contributor_test.dart
index 2f2a3f8e99b7aa8fd1345ce10986416922035a2e..95cbb70bebb430fee9e4876c58c68ac0c87766d5 100644
--- a/pkg/analysis_server/test/services/completion/imported_reference_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/imported_reference_contributor_test.dart
@@ -490,6 +490,17 @@ class B extends A {
});
}
+ test_inComment_endOfLine() {
+ addTestSource('''
+main() {
+ // text ^
+}
+''');
+ return computeFull((bool result) {
+ assertNoSuggestions();
+ });
+ }
+
test_InstanceCreationExpression() {
addSource(
'/testA.dart',

Powered by Google App Engine
This is Rietveld 408576698