diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-27 15:02:56 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-27 15:03:06 -0400 |
commit | 3018b4431bc57b2ce3faae69e919ff713064873c (patch) | |
tree | ddc9e03393fb67c1ddd3adb4e574d8d55d6d96c9 /tests/test-runner.h | |
parent | dd90921d878c9d2ace742091f81684a3db72a5ff (diff) |
tests: Add event-test, which tests for a few incoming events
We check that we get surface.enter_output and move the pointer into
the window and make sure we get input_device.pointer_enter with
the right coordinates.
There's a lot of code for a very simple test here, so we need to
figure out how to reuse most of the event handling and such. It's also
not clear that a custom, text based protocol is practical here, we might
just use a wayland extension after all.
Diffstat (limited to 'tests/test-runner.h')
-rw-r--r-- | tests/test-runner.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-runner.h b/tests/test-runner.h index 97e5529..ea353bc 100644 --- a/tests/test-runner.h +++ b/tests/test-runner.h @@ -30,6 +30,10 @@ struct test_client { int done; int status; int terminate; + + char buf[256]; + void (*handle)(struct test_client *client); + void *data; }; struct test_client *test_client_launch(struct weston_compositor *compositor); |