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

Unified Diff: pkg/analysis_server/test/services/completion/local_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
« 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 1a3b49e53834d41dfd688ee926e3ad12ea48c203..0a8cc55288c9e729835092041346b77d6357a2e9 100644
--- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
@@ -208,49 +208,4 @@ class LocalComputerTest extends AbstractSelectorSuggestionTest {
assertSuggestParameter('x', 'X');
assertSuggestParameter('y', 'int');
}
-
- test_PrefixedIdentifier() {
- // SimpleIdentifier PrefixedIdentifier ExpressionStatement
- addTestSource('''
- class A {var b; X _c;}
- class X{}
- main() {A a; a.^}''');
- expect(computeFast(), isTrue);
- // PrefixedIdentifier is handled by InvocationComputer
- assertNotSuggested('b');
- assertNotSuggested('_c');
- }
-
- test_PrefixedIdentifier_interpolation() {
- // SimpleIdentifier PrefixedIdentifier InterpolationExpression
- addTestSource('main() {String name; print("hello \${name.^}");}');
- expect(computeFast(), isTrue);
- // InvocationComputer creates suggestions for prefixed identifiers
- assertNotSuggested('name');
- assertNotSuggested('length');
- }
-
- test_PrefixedIdentifier_prefix() {
- // SimpleIdentifier PrefixedIdentifier InterpolationExpression
- addTestSource('main() {String name; print("hello \${nam^e.length}");}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('name', 'String');
- assertNotSuggested('length');
- }
-
- test_TopLevelVariableDeclaration_typed_name() {
- // SimpleIdentifier VariableDeclaration VariableDeclarationList
- // TopLevelVariableDeclaration
- addTestSource('class A {} B ^');
- expect(computeFast(), isTrue);
- assertNotSuggested('A');
- }
-
- test_TopLevelVariableDeclaration_untyped_name() {
- // SimpleIdentifier VariableDeclaration VariableDeclarationList
- // TopLevelVariableDeclaration
- addTestSource('class A {} var ^');
- expect(computeFast(), isTrue);
- assertNotSuggested('A');
- }
}
« 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