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

Unified Diff: pkg/analysis_server/test/services/completion/imported_computer_test.dart

Issue 816233002: refactor/cleanup dart completion cache (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge and address comments Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/imported_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/imported_computer_test.dart b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
index bbbff651d1c36caa7abd34aa19d51f323ce0d224..59ad0375a4dbeddbe1e4b5fbccc1264befcfd21d 100644
--- a/pkg/analysis_server/test/services/completion/imported_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/imported_computer_test.dart
@@ -14,6 +14,7 @@ import 'package:unittest/unittest.dart';
import '../../reflective_tests.dart';
import 'completion_test_util.dart';
+import 'package:analyzer/src/generated/element.dart';
main() {
groupSep = ' | ';
@@ -113,6 +114,10 @@ class ImportedComputerTest extends AbstractSelectorSuggestionTest {
test_ArgumentList() {
return super.test_ArgumentList().then((_) {
expect(request.cache.importKey, "import '/libA.dart';");
+ ClassElement objClassElem1 = request.cache.importedClassMap['Object'];
+ expect(objClassElem1, isNotNull);
+ ClassElement objClassElem2 = request.cache.objectClassElement;
+ expect(objClassElem1, same(objClassElem2));
});
}
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698