From 482f799d356a8fbb8f585c4de7cc0992b8dc6fd3 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 15:41:39 +0300 Subject: Migrate tests to the unified event API Port backend, input, tablet and app tests from yasl_input_event and YASL_INPUT_* to struct yasl_event and YASL_EVENT_*. The input allocation test links input.c on its own, so it stubs yasl_loop_now_ns() for the new event timestamps. Co-Authored-By: Claude Opus 5.5 --- tests/wayland/test_input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/wayland/test_input.c') diff --git a/tests/wayland/test_input.c b/tests/wayland/test_input.c index feff2f3..f6112b6 100644 --- a/tests/wayland/test_input.c +++ b/tests/wayland/test_input.c @@ -41,10 +41,10 @@ int main(void) for (int i = 0; i < 600; i++) { char text[32]; snprintf(text, sizeof(text), "commit-%d", i); - struct yasl_input_event event; - assert(wayland_surface_input_poll(&w, &event)); - assert(event.kind == YASL_INPUT_TEXT && event.surface == &w.base); - assert(strcmp(event.text.text, text) == 0); + struct yasl_event event; + assert(wayland_surface_poll_event(&w, &event)); + assert(event.type == YASL_EVENT_TEXT && event.surface == &w.base); + assert(strcmp(event.text.data, text) == 0); } input_queue_clear(&w.input); return 0; -- cgit v1.2.3