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.integration.analysis.get.hover; | 5 library test.integration.analysis.get.hover; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
10 import 'package:path/path.dart'; | 10 import 'package:path/path.dart'; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 tests.add(checkHover( | 166 tests.add(checkHover( |
167 'length;', 6, ['get', 'length', 'int'], 'getter', null, | 167 'length;', 6, ['get', 'length', 'int'], 'getter', null, |
168 isCore: true, docRegexp: '.*')); | 168 isCore: true, docRegexp: '.*')); |
169 tests.add(checkHover( | 169 tests.add(checkHover( |
170 'length =', 6, ['set', 'length', 'int'], 'setter', null, | 170 'length =', 6, ['set', 'length', 'int'], 'setter', null, |
171 isCore: true, docRegexp: '.*')); | 171 isCore: true, docRegexp: '.*')); |
172 tests.add(checkHover('param;', 5, ['int', 'param'], 'parameter', ['int'], | 172 tests.add(checkHover('param;', 5, ['int', 'param'], 'parameter', ['int'], |
173 isLocal: true, | 173 isLocal: true, |
174 docRegexp: 'Documentation for func', | 174 docRegexp: 'Documentation for func', |
175 parameterRegexps: ['.*'])); | 175 parameterRegexps: ['.*'])); |
176 tests.add(checkHover('add(', 3, ['List', 'add'], 'method', null, | 176 tests.add(checkHover( |
| 177 'add(', 3, ['List', 'add'], 'method', ['dynamic', 'void'], |
177 isCore: true, docRegexp: '.*')); | 178 isCore: true, docRegexp: '.*')); |
178 tests.add(checkHover( | 179 tests.add(checkHover( |
179 'localVar)', 8, ['num', 'localVar'], 'local variable', ['num'], | 180 'localVar)', 8, ['num', 'localVar'], 'local variable', ['num'], |
180 isLocal: true, parameterRegexps: ['.*'], propagatedType: 'int')); | 181 isLocal: true, parameterRegexps: ['.*'], propagatedType: 'int')); |
181 tests.add(checkHover( | 182 tests.add(checkHover( |
182 'func(35', 4, ['func', 'int', 'param'], 'function', null, | 183 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'], |
183 docRegexp: 'Documentation for func')); | 184 docRegexp: 'Documentation for func')); |
184 tests.add(checkHover('35', 2, null, null, ['int'], | 185 tests.add(checkHover('35', 2, null, null, ['int'], |
185 isLiteral: true, parameterRegexps: ['int', 'param'])); | 186 isLiteral: true, parameterRegexps: ['int', 'param'])); |
186 tests.add(checkNoHover('comment')); | 187 tests.add(checkNoHover('comment')); |
187 return Future.wait(tests); | 188 return Future.wait(tests); |
188 }); | 189 }); |
189 } | 190 } |
190 } | 191 } |
OLD | NEW |