Index: pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart |
diff --git a/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart |
index 7c91fe8324b281ba6f6125187905908ee9cf5663..c807286a84f667ab4c3cf72ae2487aa7b1031eab 100644 |
--- a/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart |
@@ -4521,4 +4521,27 @@ class ImportedReferenceContributorTest_Driver |
test_enum_deprecated() { |
// TODO(scheglov) remove it? |
} |
+ |
+ // Sanity check. Permutations tested in local_ref_contributor. |
scheglov
2017/03/01 21:43:54
///
pquitslund
2017/03/01 22:59:25
Done.
|
+ test_ArgDefaults_function_with_required_named() async { |
+ addMetaPackageSource(); |
+ |
+ resolveSource( |
+ '/testB.dart', |
+ ''' |
+lib B; |
+import 'package:meta/meta.dart'; |
+ |
+bool foo(int bar, {bool boo, @required int baz}) => false; |
+'''); |
+ |
+ addTestSource(''' |
+import "/testB.dart"; |
+ |
+void main() {f^}'''); |
+ await computeSuggestions(); |
+ |
+ assertSuggestFunction('foo', 'bool', |
+ defaultArgListString: 'bar, baz: null'); |
+ } |
} |