| Index: pkg/analysis_server/test/services/correction/name_suggestion_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/name_suggestion_test.dart b/pkg/analysis_server/test/services/correction/name_suggestion_test.dart
|
| index 9ef37c3cde2ad790428475cd91b7ea5fc03ae9b4..05b43a3fe48c0998c83c75c632d4a4c42791b13d 100644
|
| --- a/pkg/analysis_server/test/services/correction/name_suggestion_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/name_suggestion_test.dart
|
| @@ -290,7 +290,7 @@ main(p) {
|
| unorderedEquals(['computeSuffix', 'suffix']));
|
| }
|
|
|
| - void test_forExpression_propertyAccess() {
|
| + void test_forExpression_prefixedIdentifier() {
|
| resolveTestUnit('''
|
| main(p) {
|
| var res = p.sortedNodes;
|
| @@ -305,6 +305,20 @@ main(p) {
|
| unorderedEquals(['sortedNodes', 'nodes']));
|
| }
|
|
|
| + void test_forExpression_propertyAccess() {
|
| + resolveTestUnit('''
|
| +main(p) {
|
| + var res = p.q.sortedNodes;
|
| +}
|
| +''');
|
| + var excluded = new Set.from([]);
|
| + PropertyAccess expression =
|
| + findNodeAtString('p.q.sorted', (node) => node is PropertyAccess);
|
| + expect(
|
| + getVariableNameSuggestionsForExpression(null, expression, excluded),
|
| + unorderedEquals(['sortedNodes', 'nodes']));
|
| + }
|
| +
|
| void test_forExpression_simpleName() {
|
| resolveTestUnit('''
|
| main(p) {
|
|
|