| 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.invocation; | 5 library test.services.completion.invocation; |
| 6 | 6 |
| 7 | 7 |
| 8 import 'package:analysis_server/src/services/completion/invocation_computer.dart
'; | 8 import 'package:analysis_server/src/services/completion/invocation_computer.dart
'; |
| 9 import 'package:analysis_testing/reflective_tests.dart'; | 9 import '../../reflective_tests.dart'; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 11 | 11 |
| 12 import 'completion_test_util.dart'; | 12 import 'completion_test_util.dart'; |
| 13 | 13 |
| 14 main() { | 14 main() { |
| 15 groupSep = ' | '; | 15 groupSep = ' | '; |
| 16 runReflectiveTests(InvocationComputerTest); | 16 runReflectiveTests(InvocationComputerTest); |
| 17 } | 17 } |
| 18 | 18 |
| 19 @ReflectiveTestCase() | 19 @ReflectiveTestCase() |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 test_setter_imported() { | 129 test_setter_imported() { |
| 130 addSource('/testB.dart', 'lib B; class X {set y(X x) {} set _z(X x) {}}'); | 130 addSource('/testB.dart', 'lib B; class X {set y(X x) {} set _z(X x) {}}'); |
| 131 addTestSource('import "/testB.dart"; main() {X x; x.^}'); | 131 addTestSource('import "/testB.dart"; main() {X x; x.^}'); |
| 132 return computeFull().then((_) { | 132 return computeFull().then((_) { |
| 133 assertSuggestSetter('y'); | 133 assertSuggestSetter('y'); |
| 134 assertNotSuggested('_z'); | 134 assertNotSuggested('_z'); |
| 135 }); | 135 }); |
| 136 } | 136 } |
| 137 } | 137 } |
| OLD | NEW |