| Index: pkg/analysis_server/test/analysis/notification_highlights_test.dart
|
| diff --git a/pkg/analysis_server/test/analysis/notification_highlights_test.dart b/pkg/analysis_server/test/analysis/notification_highlights_test.dart
|
| index 773d6f65a8f17648b5c0264402c132a94d9fadbe..7a548177525b0ab6eefcaeac43ef8cf4460d5c3d 100644
|
| --- a/pkg/analysis_server/test/analysis/notification_highlights_test.dart
|
| +++ b/pkg/analysis_server/test/analysis/notification_highlights_test.dart
|
| @@ -528,6 +528,33 @@ main(p) {
|
| });
|
| }
|
|
|
| + test_ENUM() {
|
| + addTestFile('''
|
| +enum MyEnum {A, B, C}
|
| +MyEnum value;
|
| +''');
|
| + return prepareHighlights().then((_) {
|
| + assertHasRegion(HighlightRegionType.ENUM, 'MyEnum {');
|
| + assertHasRegion(HighlightRegionType.ENUM, 'MyEnum value;');
|
| + });
|
| + }
|
| +
|
| + test_ENUM_CONSTANT() {
|
| + addTestFile('''
|
| +enum MyEnum {AAA, BBB}
|
| +main() {
|
| + print(MyEnum.AAA);
|
| + print(MyEnum.BBB);
|
| +}
|
| +''');
|
| + return prepareHighlights().then((_) {
|
| + assertHasRegion(HighlightRegionType.ENUM_CONSTANT, 'AAA, ');
|
| + assertHasRegion(HighlightRegionType.ENUM_CONSTANT, 'BBB}');
|
| + assertHasRegion(HighlightRegionType.ENUM_CONSTANT, 'AAA);');
|
| + assertHasRegion(HighlightRegionType.ENUM_CONSTANT, 'BBB);');
|
| + });
|
| + }
|
| +
|
| test_FIELD() {
|
| addTestFile('''
|
| class A {
|
|
|