<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma on Wayland.<br />Restricted Application added subscribers: kwin, plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, KWin.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2053" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>A new namespace KWin::Test is added which provides a few helper<br />
functions. It makes it easy to setup a KWayland client connection with<br />
the base set to be able to create a Surface and flags to create<br />
additional interfaces. This replaces the KWayland connection dance in<br />
init() methods. For cleanup() there is also a dedicated helper function.</p>
<p>In addition there are helper functions to:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">render a surface</li>
<li class="remarkup-list-item">create a surface</li>
<li class="remarkup-list-item">create a shell surface</li>
<li class="remarkup-list-item">flush the wayland client connection</li>
<li class="remarkup-list-item">access to the created interfaces - for compatibility with existing code</li>
</ul>
<p>The idea is to extend this Test library also for other common use cases<br />
like creating an X11 connection and X11 windows, etc.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>autotest-refactoring</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2053" rel="noreferrer">https://phabricator.kde.org/D2053</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/integration/CMakeLists.txt<br />
autotests/integration/debug_console_test.cpp<br />
autotests/integration/decoration_input_test.cpp<br />
autotests/integration/dont_crash_cancel_animation.cpp<br />
autotests/integration/dont_crash_empty_deco.cpp<br />
autotests/integration/dont_crash_no_border.cpp<br />
autotests/integration/input_stacking_order.cpp<br />
autotests/integration/kwin_wayland_test.h<br />
autotests/integration/lockscreen.cpp<br />
autotests/integration/maximize_test.cpp<br />
autotests/integration/move_resize_window_test.cpp<br />
autotests/integration/plasma_surface_test.cpp<br />
autotests/integration/plasmawindow_test.cpp<br />
autotests/integration/pointer_input.cpp<br />
autotests/integration/quick_tiling_test.cpp<br />
autotests/integration/shell_client_test.cpp<br />
autotests/integration/start_test.cpp<br />
autotests/integration/struts_test.cpp<br />
autotests/integration/test_helpers.cpp<br />
autotests/integration/touch_input_test.cpp<br />
autotests/integration/transient_no_input_test.cpp<br />
autotests/integration/transient_placement.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma on Wayland<br /><strong>Cc: </strong>plasma-devel, kwin, hardening, jensreuterberg, sebas<br /></div>