diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-06-13 11:52:30 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-06-13 11:52:30 +0100 |
| commit | 66c9ef99816708cb1ffedd3ec37e5622bf823c20 (patch) | |
| tree | 10e640bcda8b6ecd92a7486a9d700366cf40f239 /test/style-reader.tests.js | |
| parent | 700e395a3d2a0c9f6526fe7c69a92bd347fa1b88 (diff) | |
Support style mapping for highlights
Diffstat (limited to 'test/style-reader.tests.js')
| -rw-r--r-- | test/style-reader.tests.js | 14 |
1 files changed, 14 insertions, 0 deletions
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", |
