From 2fb7acaea6252f2eb63427fd1e69645d319144c2 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 14:17:17 +0200 Subject: Evaluate activation highlights --- tests/run.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3