| 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 d4ecdde33dab646851e6f4bad36da2c33dfb8872..28b5b8267aa8229ce63f8a2dc46ef3d4f420f6dd 100644
|
| --- a/pkg/analysis_server/test/analysis_notification_highlights_test.dart
|
| +++ b/pkg/analysis_server/test/analysis_notification_highlights_test.dart
|
| @@ -8,10 +8,10 @@ import 'dart:async';
|
|
|
| import 'package:analysis_server/src/constants.dart';
|
| import 'package:analysis_server/src/protocol.dart';
|
| -import 'reflective_tests.dart';
|
| import 'package:unittest/unittest.dart';
|
|
|
| import 'analysis_abstract.dart';
|
| +import 'reflective_tests.dart';
|
|
|
|
|
| main() {
|
| @@ -706,6 +706,21 @@ void main() {
|
| });
|
| }
|
|
|
| + test_LABEL() {
|
| + addTestFile('''
|
| +main() {
|
| +myLabel:
|
| + while (true) {
|
| + break myLabel;
|
| + }
|
| +}
|
| +''');
|
| + return prepareHighlights().then((_) {
|
| + assertHasRegion(HighlightRegionType.LABEL, 'myLabel:');
|
| + assertHasRegion(HighlightRegionType.LABEL, 'myLabel;');
|
| + });
|
| + }
|
| +
|
| test_LITERAL_BOOLEAN() {
|
| addTestFile('var V = true;');
|
| return prepareHighlights().then((_) {
|
| @@ -890,16 +905,16 @@ part 'test.dart';
|
|
|
| @ReflectiveTestCase()
|
| class HighlightTypeTest {
|
| - void test_toString() {
|
| - expect(HighlightRegionType.CLASS.toString(), 'HighlightRegionType.CLASS');
|
| - }
|
| -
|
| void test_constructor() {
|
| expect(
|
| HighlightRegionType.CLASS,
|
| new HighlightRegionType(HighlightRegionType.CLASS.name));
|
| }
|
|
|
| + void test_toString() {
|
| + expect(HighlightRegionType.CLASS.toString(), 'HighlightRegionType.CLASS');
|
| + }
|
| +
|
| void test_valueOf_unknown() {
|
| expect(() {
|
| new HighlightRegionType('no-such-type');
|
|
|