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

Unified Diff: pkg/analysis_server/test/analysis/get_hover_test.dart

Issue 1529593002: Fix for enum signatures. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/get_hover_test.dart
diff --git a/pkg/analysis_server/test/analysis/get_hover_test.dart b/pkg/analysis_server/test/analysis/get_hover_test.dart
index 030252be2f71ee88fb93e9ca6a3ea2fb509d2a08..cc1a4e47786f88267bad2c148274c7eea77a98b8 100644
--- a/pkg/analysis_server/test/analysis/get_hover_test.dart
+++ b/pkg/analysis_server/test/analysis/get_hover_test.dart
@@ -96,6 +96,16 @@ main() {
expect(hover.dartdoc, '''doc aaa\ndoc bbb''');
}
+ test_enum() async {
+ addTestFile('''
+enum MyEnum {AAA, BBB, CCC}
+''');
+ HoverInformation hover = await prepareHover('MyEnum');
+ expect(hover.elementDescription, 'enum MyEnum');
+ expect(hover.staticType, isNull);
+ expect(hover.propagatedType, isNull);
+ }
+
test_expression_function() async {
addTestFile('''
library my.library;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698