diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:41:39 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:41:39 +0300 |
| commit | 482f799d356a8fbb8f585c4de7cc0992b8dc6fd3 (patch) | |
| tree | 85551a69e3c356da7b9b514224e25a6c2f8d29b9 /tests/wayland/test_input.c | |
| parent | 537b2d768b31deb0f95c5122e0d562e4406ae9a0 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'tests/wayland/test_input.c')
| -rw-r--r-- | tests/wayland/test_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
