| Index: pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| index 2153dfe0f9f8f4f2abfff8a57f97b00e1b12d93f..1255940a971e12c51c7d83ca0a9c0b8fcab4170f 100644
|
| --- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| +++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| @@ -978,4 +978,28 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| assertNoSuggestions();
|
| });
|
| }
|
| +
|
| + test_BinaryExpression_LHS() {
|
| + // SimpleIdentifier BinaryExpression VariableDeclaration
|
| + // VariableDeclarationList VariableDeclarationStatement
|
| + addTestSource('main() {int a = 1, b = ^ + 2;}');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestLocalVariable('a', 'int');
|
| + assertSuggestImportedClass('Object');
|
| + assertNotSuggested('b');
|
| + });
|
| + }
|
| +
|
| + test_BinaryExpression_RHS() {
|
| + // SimpleIdentifier BinaryExpression VariableDeclaration
|
| + // VariableDeclarationList VariableDeclarationStatement
|
| + addTestSource('main() {int a = 1, b = 2 + ^;}');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestLocalVariable('a', 'int');
|
| + assertSuggestImportedClass('Object');
|
| + assertNotSuggested('b');
|
| + });
|
| + }
|
| }
|
|
|