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

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

Issue 636153003: more common code completion tests (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/imported_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/imported_computer_test.dart b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
index ad056611beef8e5c84b8c0c1d164626545fc193e..0c258f03f371d76e2458e1b96561385e2a880c3f 100644
--- a/pkg/analysis_server/test/services/completion/imported_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
@@ -162,41 +162,6 @@ class ImportedTypeComputerTest extends AbstractSelectorSuggestionTest {
});
}
- test_PrefixedIdentifier() {
- // SimpleIdentifier PrefixedIdentifier ExpressionStatement
- addSource('/testA.dart', '''
- class A() {int x;}
- _B() {}''');
- addTestSource('''
- import "/testA.dart";
- class X {foo(){A a; a.^}}''');
- return computeFull().then((_) {
- // InvocationComputer provides suggestions for prefixed expressions
- assertNotSuggested('A');
- assertNotSuggested('x');
- assertNotSuggested('X');
- assertNotSuggested('Object');
- });
- }
-
- test_PrefixedIdentifier_prefix() {
- // SimpleIdentifier PrefixedIdentifier ExpressionStatement
- addSource('/testA.dart', '''
- class A {static int bar = 10;}
- _B() {}''');
- addTestSource('''
- import "/testA.dart";
- class X {foo(){A^.bar}}''');
- return computeFull().then((_) {
- // InvocationComputer provides suggestions for prefixed expressions
- assertSuggestClass('A');
- assertNotSuggested('bar');
- assertNotSuggested('_B');
- assertNotSuggested('X');
- assertNotSuggested('foo');
- });
- }
-
test_ShowCombinator_class() {
// SimpleIdentifier ShowCombinator ImportDirective
addSource('/testAB.dart', '''
@@ -217,28 +182,4 @@ class ImportedTypeComputerTest extends AbstractSelectorSuggestionTest {
assertNotSuggested('Object');
});
}
-
- test_TopLevelVariableDeclaration_name() {
- // SimpleIdentifier VariableDeclaration VariableDeclarationList
- // TopLevelVariableDeclaration
- addSource('/testA.dart', 'class B { };');
- addTestSource('''
- import "/testA.dart";
- class C {} B ^''');
- return computeFull().then((_) {
- assertNotSuggested('B');
- });
- }
-
- test_TopLevelVariableDeclaration_name_untyped() {
- // SimpleIdentifier VariableDeclaration VariableDeclarationList
- // TopLevelVariableDeclaration
- addSource('/testA.dart', 'class B { };');
- addTestSource('''
- import "/testA.dart";
- class C {} var ^''');
- return computeFull().then((_) {
- assertNotSuggested('B');
- });
- }
}

Powered by Google App Engine
This is Rietveld 408576698