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

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

Issue 1509523002: add completions in assert stmt - fixes #24888 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years 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 54ad5e1d3f51cf6d3850637648bbead1fac8da55..1afd44a41183bb85e642bed4432052ab9ac91070 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
@@ -257,6 +257,13 @@ class ImportedReferenceContributorTest extends AbstractSelectorSuggestionTest {
});
}
+ test_Assert() {
+ addTestSource('main() {assert(^)}');
+ return computeFull((bool result) {
+ assertSuggestClass('String');
+ });
+ }
+
@override
test_AssignmentExpression_RHS() {
return super.test_AssignmentExpression_RHS().then((_) {

Powered by Google App Engine
This is Rietveld 408576698