Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_qpainter_test.cpp
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | |||||
152 | 152 | | |||
153 | void SceneQPainterTest::testWindow_data() | 153 | void SceneQPainterTest::testWindow_data() | ||
154 | { | 154 | { | ||
155 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 155 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
156 | 156 | | |||
157 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | 157 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | ||
158 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | 158 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | ||
159 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | 159 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | ||
160 | QTest::newRow("xdgWmBase") << Test::ShellSurfaceType::XdgShellStable; | ||||
160 | } | 161 | } | ||
161 | 162 | | |||
162 | void SceneQPainterTest::testWindow() | 163 | void SceneQPainterTest::testWindow() | ||
163 | { | 164 | { | ||
164 | KWin::Cursor::setPos(45, 45); | 165 | KWin::Cursor::setPos(45, 45); | ||
165 | // this test verifies that a window is rendered correctly | 166 | // this test verifies that a window is rendered correctly | ||
166 | using namespace KWayland::Client; | 167 | using namespace KWayland::Client; | ||
167 | QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Seat)); | 168 | QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Seat)); | ||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |