summaryrefslogtreecommitdiff
path: root/tests/text-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Use text input protocol from wayland-protocolsJonas Ådahl2015-11-191-26/+28
| | | | | | | Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com> Reviewed-by: Jan Arne Petersen <janarne@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* tests: Update boilerplate from MIT X11 license to MIT Expat licenseBryce Harrington2015-06-151-16/+19
|
* tests: rename client_create to create_client_and_test_surfacePekka Paalanen2015-04-021-1/+1
| | | | | | | | | A more descriptive name to not be confused with create_client(). v2: Rebased: fix also devices-test.c. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
* tests: Rename wayland-test to weston-testDerek Foreman2015-02-241-2/+2
| | | | | | | | | | | | | | wayland-test isn't and will never be wayland protocol, it's weston internal. Renamed wayland-test to weston-test, and wl_test to weston_test. Also added a Big Fat Warning to the description of weston_test to try to keep people from thinking it's a good idea to use some of these functions outside of testing. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Acked-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* tests: Cleanup superfluous headersBryce Harrington2014-11-281-1/+1
| | | | | | | | | Mostly remove headers that aren't actually needed for anything. Add stdint.h to permit dropping xf86drm.h, which is otherwise unneeded. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Acked-by: Marek Chalupa <mchqwerty@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Make sure config.h is included before any system headersAndrew Wedgbury2014-04-071-0/+2
| | | | | | | | | | | | | | | There was an issue recently in screen-share.c where config.h was not being included, resulting in the wrong definition for off_t being used on 32 bit systems. I checked and I don't think this problem is happening elsewhere, but to help avoid this sort of problem in the future, I went through and made sure that config.h is included first whenever system headers are included. The config.h header should be included before any system headers, failing to do this can result in the wrong type sizes being defined on certain systems, e.g. off_t from sys/types.h Signed-off-by: Andrew Wedgbury <andrew.wedgbury@realvnc.com>
* build: Move clients libexec_PROGRAMS under BUILD_CLIENTS conditionalKristian Høgsberg2014-01-011-1/+1
| | | | | | | | All the libexec programs are only built when BUILD_CLIENTS is true, so we can just assign libexec_PROGRAMS under the condition. This lets us drop most of the variable assignments and simplify it a bit. https://bugs.freedesktop.org/show_bug.cgi?id=72812
* text: Rename text_input to wl_text_inputJan Arne Petersen2013-05-021-25/+25
| | | | Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* text: Fix serial handlingJan Arne Petersen2013-05-021-6/+2
| | | | Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* text: Rename text_model to text_inputJan Arne Petersen2013-05-021-53/+53
| | | | | | Also rename text_model_factory to text_input_manager. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* text: Order requests and events in a nice wayJan Arne Petersen2013-05-021-7/+7
| | | | Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* text: Add language and text-direction to protocolJan Arne Petersen2013-05-021-1/+19
| | | | Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* tests: Fix text-testJan Arne Petersen2013-02-201-28/+40
| | | | | | Updated to changed text protocol. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* tests: check wl_display_roundtrip() for errorsPekka Paalanen2012-12-121-5/+5
| | | | | | | | | | | | 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>
* tests: Port text-test to new test frameworkKristian Høgsberg2012-12-111-142/+117
| | | | So much simpler this way and the test suite is now back too 100% pass.
* compositor: Always assign an output when updating a surface transformAnder Conselvan de Oliveira2012-09-141-1/+1
| | | | | | | | | | | Also make all the callers of weston_surface_assign_output() update the transform instead. This makes sure that when the surface is assigned an output its bouding box is valid. This fixes a bug where a newly created surface would have a NULL output assigned. This would cause weston_surface_schedule_repaint() to not schedule a repaint, preventing the surface to be shown until something else caused a repaint.
* text: Remove surface arg in create_text_modelJan Arne Petersen2012-09-121-1/+1
| | | | | | | Remove the wl_surface argument from create_text_model request. The wl_surface is specified as an argument in the activate request instead. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
* tests: Add unit test for text modelJan Arne Petersen2012-08-291-0/+213
Add tests for activate/deactivate and unfocusing of the assigned surface.