From 66c9ef99816708cb1ffedd3ec37e5622bf823c20 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 13 Jun 2024 11:52:30 +0100 Subject: Support style mapping for highlights --- test/style-reader.tests.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/style-reader.tests.js') diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js index 93ddc79..79be1dd 100644 --- a/test/style-reader.tests.js +++ b/test/style-reader.tests.js @@ -209,6 +209,20 @@ test("styleReader.readDocumentMatcher", { ); }, + "reads highlight without color": function() { + assertDocumentMatcher( + "highlight", + documentMatchers.highlight() + ); + }, + + "reads highlight with color": function() { + assertDocumentMatcher( + "highlight[color='yellow']", + documentMatchers.highlight({color: "yellow"}) + ); + }, + "reads comment-reference": function() { assertDocumentMatcher( "comment-reference", -- cgit v1.2.3