summaryrefslogtreecommitdiff
path: root/test/style-reader.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/style-reader.tests.js')
-rw-r--r--test/style-reader.tests.js14
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",