summaryrefslogtreecommitdiff
path: root/tests/run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.lua')
-rw-r--r--tests/run.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua
index 8520d5a..f9e46f2 100644
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -7086,6 +7086,25 @@ test("Core activation owns the plugin-global sequence state", function()
same(activation, root:activate())
end)
+test("Core activation evaluates default and enabled feature highlights", function()
+ fresh_sequence_state()
+ local host = MemoryHost.new({
+ configuration = {
+ mark_cursor = true,
+ mark_char = false,
+ mark_direct = true,
+ },
+ })
+ local activation = composition_root.new({ host = host }):activate()
+ local groups = host:highlight_groups()
+
+ same("fallback", activation.highlights.default_label.source)
+ same("red", groups.CleverFDefaultLabel.guifg)
+ same("Cursor", groups.CleverFCursor.link)
+ same(nil, groups.CleverFChar)
+ same("CleverFDefaultLabel", groups.CleverFDirect.link)
+end)
+
test("Primary coordination accepts only the four motion descriptors", function()
local coordinator = sequence_coordinator.new({ host = MemoryHost.new() })
for _, value in ipairs({ "f", "F", "t", "T" }) do