Chromium Code Reviews| Index: pkg/analysis_server/test/services/completion/dart/inherited_reference_contributor_test.dart |
| diff --git a/pkg/analysis_server/test/services/completion/dart/inherited_reference_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/inherited_reference_contributor_test.dart |
| index 8e564c7b1bbf02f0121c1bb85209edc8e1e4c884..038990bd1087f9a9d91de95f8f4029c3cc36ee5d 100644 |
| --- a/pkg/analysis_server/test/services/completion/dart/inherited_reference_contributor_test.dart |
| +++ b/pkg/analysis_server/test/services/completion/dart/inherited_reference_contributor_test.dart |
| @@ -623,4 +623,28 @@ class B extends A1 with A2 { |
| class InheritedContributorTest_Driver extends InheritedContributorTest { |
| @override |
| bool get enableNewAnalysisDriver => true; |
| + |
| + // 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_inherited_method_with_required_named() async { |
| + addMetaPackageSource(); |
| + resolveSource( |
| + '/testB.dart', |
| + ''' |
| +import 'package:meta/meta.dart'; |
| + |
| +lib libB; |
| +class A { |
| + bool foo(int bar, {bool boo, @required int baz}) => false; |
| +}'''); |
| + addTestSource(''' |
| +import "/testB.dart"; |
| +class B extends A { |
| + b() => f^ |
| +} |
| +'''); |
| + await computeSuggestions(); |
| + |
| + assertSuggestMethod('foo', 'A', 'bool', |
| + defaultArgListString: 'bar, baz: null'); |
| + } |
| } |