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

Side by Side Diff: pkg/analysis_server/test/services/completion/arglist_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.arglist; 5 library test.services.completion.dart.arglist;
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/arglist_computer.dart'; 8 import 'package:analysis_server/src/services/completion/arglist_computer.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 import '../../reflective_tests.dart'; 11 import '../../reflective_tests.dart';
12 import 'completion_test_util.dart'; 12 import 'completion_test_util.dart';
13 13
14 main() { 14 main() {
15 groupSep = ' | '; 15 groupSep = ' | ';
16 runReflectiveTests(ArgListComputerTest); 16 runReflectiveTests(ArgListContributorTest);
17 } 17 }
18 18
19 @reflectiveTest 19 @reflectiveTest
20 class ArgListComputerTest extends AbstractCompletionTest { 20 class ArgListContributorTest extends AbstractCompletionTest {
21 @override 21 @override
22 void setUpComputer() { 22 void setUpContributor() {
23 computer = new ArgListComputer(); 23 contributor = new ArgListContributor();
24 } 24 }
25 25
26 test_ArgumentList_imported_function_0() { 26 test_ArgumentList_imported_function_0() {
27 // ArgumentList MethodInvocation ExpressionStatement Block 27 // ArgumentList MethodInvocation ExpressionStatement Block
28 addSource('/libA.dart', ''' 28 addSource('/libA.dart', '''
29 library A; 29 library A;
30 bool hasLength(int expected) { } 30 bool hasLength(int expected) { }
31 expect() { } 31 expect() { }
32 void baz() { }'''); 32 void baz() { }''');
33 addTestSource(''' 33 addTestSource('''
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 class B { 106 class B {
107 expect(arg, int blat) { } 107 expect(arg, int blat) { }
108 void foo() {expect(^)}} 108 void foo() {expect(^)}}
109 String bar() => true;'''); 109 String bar() => true;''');
110 computeFast(); 110 computeFast();
111 return computeFull((bool result) { 111 return computeFull((bool result) {
112 assertSuggestArgumentList(['arg', 'blat'], ['dynamic', 'int']); 112 assertSuggestArgumentList(['arg', 'blat'], ['dynamic', 'int']);
113 }); 113 });
114 } 114 }
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698