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

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

Issue 1352843002: Highlight library identifiers as LIBRARY_NAME. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/lib/src/computer/computer_highlights2.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/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((_) {
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_highlights2.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698