summaryrefslogtreecommitdiff
path: root/tests/run.lua
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:04:58 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:04:58 +0200
commit3402c8557af220be7129b3bed0d2fa93eac4a724 (patch)
tree75aecf52053d156927af1b34265d501af94e0eb5 /tests/run.lua
parentd63e27bd72b4a9f66960656ac9e1b77d99ac1115 (diff)
Read previous acquisition target
Diffstat (limited to 'tests/run.lua')
-rw-r--r--tests/run.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua
index 7b50190..89f6273 100644
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -5239,6 +5239,12 @@ test("Acquisition compares first codes with previous-input triggers", function()
)
same("xy", result.previous_input_trigger)
same("xy", service:last_temporary_scope().previous_input_trigger)
+ same(
+ domain.TargetValue.character("h", 104),
+ service:last_temporary_scope().cached_target
+ )
+ same(domain.ModeContext.from_full_mode("v"), result.previous_target_source)
+ same(service:last_temporary_scope().cached_target, result.cached_target)
local trigger, index = acquisition_service.match_previous_input_trigger(
0x3042,
{ "x", "\227\129\130more" }