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

Side by Side Diff: pkg/analysis_server/test/services/completion/imported_computer_test.dart

Issue 1050483002: fix NSM error when completing imported inherited private fields (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
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698