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

Unified Diff: pkg/analysis_server/test/search/type_hierarchy_test.dart

Issue 892913004: Fix type hierarchy when there is no element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.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/search/type_hierarchy_test.dart
diff --git a/pkg/analysis_server/test/search/type_hierarchy_test.dart b/pkg/analysis_server/test/search/type_hierarchy_test.dart
index 6020ad01f7e025fad86ed2cd4308bf4f906e8ee7..e799f3783ca4eaa860447232e18206719fe624f0 100644
--- a/pkg/analysis_server/test/search/type_hierarchy_test.dart
+++ b/pkg/analysis_server/test/search/type_hierarchy_test.dart
@@ -47,6 +47,16 @@ main() {
expect(items, isNull);
}
+ test_bad_noElement() async {
+ addTestFile('''
+main() {
+ /* target */
+}
+''');
+ List<TypeHierarchyItem> items = await _getTypeHierarchy('/* target */');
+ expect(items, isNull);
+ }
+
test_bad_recursion() async {
addTestFile('''
class A extends B {
@@ -556,6 +566,7 @@ class D extends C {
await waitForTasksFinished();
Request request = _createGetTypeHierarchyRequest(search);
Response response = await serverChannel.sendRequest(request);
+ expect(serverErrors, isEmpty);
return new SearchGetTypeHierarchyResult.fromResponse(
response).hierarchyItems;
}
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698