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

Unified Diff: pkg/analysis_server/test/services/completion/local_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
« no previous file with comments | « pkg/analysis_server/test/services/completion/invocation_computer_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/local_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/local_computer_test.dart b/pkg/analysis_server/test/services/completion/local_computer_test.dart
index f1210ff948c2463fbe98a24ab54a5c6bba7467ac..1a3b49e53834d41dfd688ee926e3ad12ea48c203 100644
--- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
@@ -253,63 +253,4 @@ class LocalComputerTest extends AbstractSelectorSuggestionTest {
expect(computeFast(), isTrue);
assertNotSuggested('A');
}
-
- test_VariableDeclarationStatement_name() {
- // SimpleIdentifier VariableDeclaration VariableDeclarationList
- // VariableDeclarationStatement
- addTestSource('class _A {a() {var f; var ^}}');
- expect(computeFast(), isTrue);
- assertNotSuggested('A');
- assertNotSuggested('a');
- assertNotSuggested('f');
- }
-
- test_VariableDeclaration_RHS() {
- // VariableDeclaration VariableDeclarationList
- // VariableDeclarationStatement
- addTestSource('class A {a() {var f; {var x;} var e = ^ var g;}}');
- expect(computeFast(), isTrue);
- assertSuggestClass('A');
- assertSuggestLocalVariable('f', null);
- assertNotSuggested('g');
- assertNotSuggested('x');
- }
-
- xtest_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((_) {
- assertNoSuggestions();
- });
- }
-
- xtest_ConstructorName_localClass() {
- // SimpleIdentifier PrefixedIdentifier TypeName ConstructorName
- // InstanceCreationExpression
- addTestSource('''
- var m;
- class X {X.c(); X._d(); z() {}}
- main() {new X.^}''');
- return computeFull().then((_) {
- assertNoSuggestions();
- });
- }
-
- xtest_InstanceCreationExpression() {
- // SimpleIdentifier TypeName ConstructorName InstanceCreationExpression
- addTestSource('class A {a() {var f; {var x;} new ^}} class B { }');
- expect(computeFast(), isTrue);
- assertSuggestClass('A');
- assertSuggestClass('B');
- assertNotSuggested('a');
- assertNotSuggested('f');
- assertNotSuggested('x');
- }
}
« no previous file with comments | « pkg/analysis_server/test/services/completion/invocation_computer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698