summaryrefslogtreecommitdiff
path: root/tests/button-test.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-12tests: check wl_display_roundtrip() for errorsPekka Paalanen1-3/+3
Add a macro that wraps wl_display_roundtrip() and check for errors. It is a macro, so that the assert would show the relevant file and line number. This will also catch protocol errors, that would go unnoticed otherwise. All roundtrips in tests are replaced with the check. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-12-11tests: Drop yield() helper functionKristian Høgsberg1-1/+2
Remaining use case was when we move the pointer. This doesn't change geometry so we can just use a wl_display_roundtrip() to make sure we get the request to the server and receive the resulting events.
2012-12-11button-test: Use wl_display_roundtrip instead of yield()Kristian Høgsberg1-2/+2
A round trip is sufficient here. We need to make sure that the server has received the wl_test request and that we've received the event that the request triggers. The wl_display_roundtrip() helper does exactly that: it sends a wl_display.sync request, which will hit the server after the wl_test requests and thus the wl_callback.done event will come back after the server has seen all the previous requests and after we've handled all preceeding event.
2012-12-11tests: Convert button-test to new test extensionU. Artie Eoff1-106/+22
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56821 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2012-10-04tests: add button testU. Artie Eoff1-0/+138
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>