Index: pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
diff --git a/pkg/analysis_server/test/analysis/notification_highlights_test2.dart b/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
index 002bb1b9dacc63bff04cccafcf12ff0586bb3cd0..89c8322dbd0f83031bb8f218602a315271efa624 100644 |
--- a/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
+++ b/pkg/analysis_server/test/analysis/notification_highlights_test2.dart |
@@ -821,6 +821,25 @@ myLabel: |
}); |
} |
+ test_LIBRARY_NAME_libraryDirective() { |
+ addTestFile(''' |
+library my.lib.name; |
+'''); |
+ return prepareHighlights().then((_) { |
+ assertHasStringRegion(HighlightRegionType.LIBRARY_NAME, 'my.lib.name'); |
+ }); |
+ } |
+ |
+ test_LIBRARY_NAME_partOfDirective() { |
+ _addLibraryForTestPart(); |
+ addTestFile(''' |
+part of my.lib.name; |
+'''); |
+ return prepareHighlights().then((_) { |
+ assertHasStringRegion(HighlightRegionType.LIBRARY_NAME, 'my.lib.name'); |
+ }); |
+ } |
+ |
test_LITERAL_BOOLEAN() { |
addTestFile('var V = true;'); |
return prepareHighlights().then((_) { |