| OLD | NEW |
| 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(ArgListComputerTest); |
| 17 } | 17 } |
| 18 | 18 |
| 19 @ReflectiveTestCase() | 19 @reflectiveTest |
| 20 class ArgListComputerTest extends AbstractCompletionTest { | 20 class ArgListComputerTest extends AbstractCompletionTest { |
| 21 | 21 |
| 22 @override | 22 @override |
| 23 void setUpComputer() { | 23 void setUpComputer() { |
| 24 computer = new ArgListComputer(); | 24 computer = new ArgListComputer(); |
| 25 } | 25 } |
| 26 | 26 |
| 27 test_ArgumentList_imported_function_0() { | 27 test_ArgumentList_imported_function_0() { |
| 28 // ArgumentList MethodInvocation ExpressionStatement Block | 28 // ArgumentList MethodInvocation ExpressionStatement Block |
| 29 addSource('/libA.dart', ''' | 29 addSource('/libA.dart', ''' |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 class B { | 107 class B { |
| 108 expect(arg, int blat) { } | 108 expect(arg, int blat) { } |
| 109 void foo() {expect(^)}} | 109 void foo() {expect(^)}} |
| 110 String bar() => true;'''); | 110 String bar() => true;'''); |
| 111 computeFast(); | 111 computeFast(); |
| 112 return computeFull((bool result) { | 112 return computeFull((bool result) { |
| 113 assertSuggestArgumentList(['arg', 'blat'], ['dynamic', 'int']); | 113 assertSuggestArgumentList(['arg', 'blat'], ['dynamic', 'int']); |
| 114 }); | 114 }); |
| 115 } | 115 } |
| 116 } | 116 } |
| OLD | NEW |