diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua index f9e46f2..555faad 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7105,6 +7105,28 @@ test("Core activation evaluates default and enabled feature highlights", functio same("CleverFDefaultLabel", groups.CleverFDirect.link) end) +test("Core activation refreshes highlights after colorscheme changes", function() + fresh_sequence_state() + local host = MemoryHost.new({ + configuration = { mark_char = true }, + }) + local root = composition_root.new({ host = host }) + local activation = root:activate() + local registration = host:event_registrations()[ + activation.colorscheme_registration + ] + + list_same({ "ColorScheme" }, registration.names) + same("colorscheme", registration.options.lifecycle) + host:set_configuration("mark_char_color", "Search") + host:deliver_event("ColorScheme", {}) + + local refresh = root:last_highlight_refresh() + truthy(refresh ~= nil) + same("configured", refresh.feature_links.CleverFChar.source) + same("Search", host:highlight_groups().CleverFChar.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 |
