[Differential] [Request, 2,353 lines] D2053: [autotest/integration] Introduce a Test helper library to have less code duplication
graesslin (Martin Gräßlin)
noreply at phabricator.kde.org
Thu Jun 30 15:03:24 UTC 2016
graesslin created this revision.
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added subscribers: kwin, plasma-devel.
Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY
A new namespace KWin::Test is added which provides a few helper
functions. It makes it easy to setup a KWayland client connection with
the base set to be able to create a Surface and flags to create
additional interfaces. This replaces the KWayland connection dance in
init() methods. For cleanup() there is also a dedicated helper function.
In addition there are helper functions to:
- render a surface
- create a surface
- create a shell surface
- flush the wayland client connection
- access to the created interfaces - for compatibility with existing code
The idea is to extend this Test library also for other common use cases
like creating an X11 connection and X11 windows, etc.
REPOSITORY
rKWIN KWin
BRANCH
autotest-refactoring
REVISION DETAIL
https://phabricator.kde.org/D2053
AFFECTED FILES
autotests/integration/CMakeLists.txt
autotests/integration/debug_console_test.cpp
autotests/integration/decoration_input_test.cpp
autotests/integration/dont_crash_cancel_animation.cpp
autotests/integration/dont_crash_empty_deco.cpp
autotests/integration/dont_crash_no_border.cpp
autotests/integration/input_stacking_order.cpp
autotests/integration/kwin_wayland_test.h
autotests/integration/lockscreen.cpp
autotests/integration/maximize_test.cpp
autotests/integration/move_resize_window_test.cpp
autotests/integration/plasma_surface_test.cpp
autotests/integration/plasmawindow_test.cpp
autotests/integration/pointer_input.cpp
autotests/integration/quick_tiling_test.cpp
autotests/integration/shell_client_test.cpp
autotests/integration/start_test.cpp
autotests/integration/struts_test.cpp
autotests/integration/test_helpers.cpp
autotests/integration/touch_input_test.cpp
autotests/integration/transient_no_input_test.cpp
autotests/integration/transient_placement.cpp
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: graesslin, #kwin, #plasma_on_wayland
Cc: plasma-devel, kwin, hardening, jensreuterberg, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160630/d41b141d/attachment.html>
More information about the Plasma-devel
mailing list