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

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

Issue 639133003: import directive suggestion fix (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/services/completion/imported_computer.dart'; 8 import 'package:analysis_server/src/services/completion/imported_computer.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // SimpleIdentifier VariableDeclaration VariableDeclarationList 119 // SimpleIdentifier VariableDeclaration VariableDeclarationList
120 // FieldDeclaration 120 // FieldDeclaration
121 addSource('/testA.dart', 'class A { }'); 121 addSource('/testA.dart', 'class A { }');
122 addTestSource(''' 122 addTestSource('''
123 import "/testA.dart"; 123 import "/testA.dart";
124 class C {var ^}'''); 124 class C {var ^}''');
125 return computeFull().then((_) { 125 return computeFull().then((_) {
126 assertNotSuggested('A'); 126 assertNotSuggested('A');
127 }); 127 });
128 } 128 }
129
130 test_ImportDirective_dart() {
131 // SimpleStringLiteral ImportDirective
132 addTestSource('''
133 import "dart^";
134 main() {}''');
135 return computeFull().then((_) {
136 assertNotSuggested('Object');
137 });
138 }
139 } 129 }
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