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

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

Issue 637703002: add suggestions for variable declaration assignment RHS (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 2 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
Index: pkg/analysis_server/test/services/completion/invocation_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/invocation_computer_test.dart b/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
index 48f2f8470bac2f95e1be4b85600e450b04df9f04..c3ff27357f0433b2f1d1b6d2c63b0d42c4f4674a 100644
--- a/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
@@ -5,7 +5,6 @@
library test.services.completion.invocation;
-import 'package:analysis_server/src/protocol.dart';
import 'package:analysis_server/src/services/completion/invocation_computer.dart';
import 'package:unittest/unittest.dart';
@@ -26,39 +25,6 @@ class InvocationComputerTest extends AbstractSelectorSuggestionTest {
computer = new InvocationComputer();
}
- test_ConstructorName_importedClass() {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
- // InstanceCreationExpression
- addSource('/testB.dart', '''
- lib B;
- class X {X.c(); X._d(); z() {}}''');
- addTestSource('''
- import "/testB.dart";
- var m;
- main() {new X.^}''');
- return computeFull().then((_) {
- assertSuggest(CompletionSuggestionKind.CONSTRUCTOR, 'c');
- assertNotSuggested('_d');
- assertNotSuggested('z');
- assertNotSuggested('m');
- });
- }
-
- test_ConstructorName_localClass() {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
- // InstanceCreationExpression
- addTestSource('''
- var m;
- class X {X.c(); X._d(); z() {}}
- main() {new X.^}''');
- return computeFull().then((_) {
- assertSuggest(CompletionSuggestionKind.CONSTRUCTOR, 'c');
- assertSuggest(CompletionSuggestionKind.CONSTRUCTOR, '_d');
- assertNotSuggested('z');
- assertNotSuggested('m');
- });
- }
-
test_PrefixedIdentifier_field() {
// SimpleIdentifier PrefixedIdentifier ExpressionStatement
addTestSource('''

Powered by Google App Engine
This is Rietveld 408576698