Write a test, that:
1. creates a window with normal decorations using toytoolkit
2. check the window position via the test extension
3. sends fake input events
3.1. move the pointer over the window title bar
3.2. button down
3.3. move the pointer to another place
3.4. button up
4. check the window position via the test extension, that it moved correctly
This sounds simple, but requires one to write the infrastructure for using toytoolkit in tests, maybe change how wl_test pointer events are done, and add a way to query surface location.
For examples, see https://github.com/01org/wayland-fits for the test protocol and the weston plugin.
If bug #83987 is implemented, can also add screenshot based verification, which would make sure that toytoolkit draws decorations properly. But that opens a whole new road for adding tests.
I noticed this bug a week ago. I have some patches for weston to use xdg-shell in tests. On these (well, on two of them xD) I built new patches that are using toytoolkit to create a test client.
It works, but from time to time some of the tests fails and I'm not sure if it is a bug in test-suite or somewhere else, so I'm not sending them to the list yet. For anyone who is interested the code is here:
Will send it to the list when I know where the problem is.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/wayland/weston/issues/53.