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

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

Issue 1804233002: Changes to test source in arglist_contributor_test.dart, to remove warnings from the source (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart
index 0a14ef1c21ffb0e6f1555c11bc2432fb0d477e72..679a8791a6ef01168cd71b997fc3e43b3bf04176 100644
--- a/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart
@@ -96,7 +96,7 @@ class ArgListContributorTest extends DartCompletionContributorTest {
test_Annotation_local_constructor_named_param() async {
addTestSource('''
-class A { A({int one, String two: 'defaultValue'}) { } }
+class A { const A({int one, String two: 'defaultValue'}); }
@A(^) main() { }''');
await computeSuggestions();
assertSuggestArguments(namedArguments: ['one', 'two']);
@@ -106,7 +106,7 @@ class A { A({int one, String two: 'defaultValue'}) { } }
addSource(
'/libA.dart',
'''
-library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
+library libA; class A { const A({int one, String two: 'defaultValue'}); }''');
addTestSource('import "/libA.dart"; @A(^) main() { }');
await computeSuggestions();
assertSuggestArguments(namedArguments: ['one', 'two']);
@@ -120,7 +120,7 @@ library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
test_ArgumentList_imported_constructor_named_param() async {
//
- addSource('/libA.dart', 'library libA; class A{A({int one}){}}');
+ addSource('/libA.dart', 'library libA; class A{A({int one}); }');
addTestSource('import "/libA.dart"; main() { new A(^);}');
await computeSuggestions();
assertSuggestArguments(namedArguments: ['one']);
@@ -128,7 +128,7 @@ library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
test_ArgumentList_imported_constructor_named_param2() async {
//
- addSource('/libA.dart', 'library libA; class A{A.foo({int one}){}}');
+ addSource('/libA.dart', 'library libA; class A{A.foo({int one}); }');
addTestSource('import "/libA.dart"; main() { new A.foo(^);}');
await computeSuggestions();
assertSuggestArguments(namedArguments: ['one']);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698