| 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.toplevel; | 5 library test.services.completion.toplevel; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol.dart' as protocol | 7 import 'package:analysis_server/src/protocol.dart' as protocol |
| 8 show Element, ElementKind; | 8 show Element, ElementKind; |
| 9 import 'package:analysis_server/src/protocol.dart' hide Element, ElementKind; | 9 import 'package:analysis_server/src/protocol.dart' hide Element, ElementKind; |
| 10 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; | 10 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 @override | 216 @override |
| 217 test_Block_inherited_imported() { | 217 test_Block_inherited_imported() { |
| 218 return super.test_Block_inherited_imported().then((_) { | 218 return super.test_Block_inherited_imported().then((_) { |
| 219 assertCached('E'); | 219 assertCached('E'); |
| 220 assertCached('F'); | 220 assertCached('F'); |
| 221 assertNotCached('e1'); | 221 assertNotCached('e1'); |
| 222 assertNotCached('i2'); | 222 assertNotCached('i2'); |
| 223 assertNotCached('m1'); | 223 assertNotCached('m1'); |
| 224 assertNotCached('_pf'); |
| 224 }); | 225 }); |
| 225 } | 226 } |
| 226 | 227 |
| 227 test_Block_partial_results() { | 228 test_Block_partial_results() { |
| 228 // Block BlockFunctionBody MethodDeclaration | 229 // Block BlockFunctionBody MethodDeclaration |
| 229 addSource('/testAB.dart', ''' | 230 addSource('/testAB.dart', ''' |
| 230 export "dart:math" hide max; | 231 export "dart:math" hide max; |
| 231 class A {int x;} | 232 class A {int x;} |
| 232 @deprecated D1() {int x;} | 233 @deprecated D1() {int x;} |
| 233 class _B { }'''); | 234 class _B { }'''); |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 } | 725 } |
| 725 | 726 |
| 726 @override | 727 @override |
| 727 test_partFile_TypeName2() { | 728 test_partFile_TypeName2() { |
| 728 return super.test_partFile_TypeName2().then((_) { | 729 return super.test_partFile_TypeName2().then((_) { |
| 729 expect(request.cache.importKey, | 730 expect(request.cache.importKey, |
| 730 'library libA;import "/testB.dart";part "/testA.dart";'); | 731 'library libA;import "/testB.dart";part "/testA.dart";'); |
| 731 }); | 732 }); |
| 732 } | 733 } |
| 733 } | 734 } |
| OLD | NEW |