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

Side by Side Diff: pkg/analysis_server/test/services/completion/combinator_computer_test.dart

Issue 1060713005: rename completion computer to contributor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.completion.dart.combinator; 5 library test.services.completion.dart.combinator;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/services/completion/combinator_computer.dart '; 8 import 'package:analysis_server/src/services/completion/combinator_computer.dart ';
9 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'; 9 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
11 11
12 import '../../reflective_tests.dart'; 12 import '../../reflective_tests.dart';
13 import 'completion_test_util.dart'; 13 import 'completion_test_util.dart';
14 14
15 main() { 15 main() {
16 groupSep = ' | '; 16 groupSep = ' | ';
17 runReflectiveTests(CombinatorComputerTest); 17 runReflectiveTests(CombinatorContributorTest);
18 } 18 }
19 19
20 @reflectiveTest 20 @reflectiveTest
21 class CombinatorComputerTest extends AbstractCompletionTest { 21 class CombinatorContributorTest extends AbstractCompletionTest {
22 @override 22 @override
23 void setUpComputer() { 23 void setUpContributor() {
24 computer = new CombinatorComputer(); 24 contributor = new CombinatorContributor();
25 } 25 }
26 26
27 test_Block_inherited_local() { 27 test_Block_inherited_local() {
28 // Block BlockFunctionBody MethodDeclaration ClassDeclaration 28 // Block BlockFunctionBody MethodDeclaration ClassDeclaration
29 addTestSource(''' 29 addTestSource('''
30 class F { var f1; f2() { } } 30 class F { var f1; f2() { } }
31 class E extends F { var e1; e2() { } } 31 class E extends F { var e1; e2() { } }
32 class I { int i1; i2() { } } 32 class I { int i1; i2() { } }
33 class M { var m1; int m2() { } } 33 class M { var m1; int m2() { } }
34 class A extends E implements I with M {a() {^}}'''); 34 class A extends E implements I with M {a() {^}}''');
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 kind: CompletionSuggestionKind.IDENTIFIER); 120 kind: CompletionSuggestionKind.IDENTIFIER);
121 assertSuggestFunctionTypeAlias('F2', null, 121 assertSuggestFunctionTypeAlias('F2', null,
122 false, DART_RELEVANCE_DEFAULT, CompletionSuggestionKind.IDENTIFIER); 122 false, DART_RELEVANCE_DEFAULT, CompletionSuggestionKind.IDENTIFIER);
123 assertNotSuggested('C'); 123 assertNotSuggested('C');
124 assertNotSuggested('D'); 124 assertNotSuggested('D');
125 assertNotSuggested('X'); 125 assertNotSuggested('X');
126 assertNotSuggested('Object'); 126 assertNotSuggested('Object');
127 }); 127 });
128 } 128 }
129 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698