Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_qpainter_test.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 123 | { | |||
---|---|---|---|---|---|
147 | p.drawImage(QPoint(45, 45) - kwinApp()->platform()->softwareCursorHotspot(), cursorImage); | 147 | p.drawImage(QPoint(45, 45) - kwinApp()->platform()->softwareCursorHotspot(), cursorImage); | ||
148 | QCOMPARE(referenceImage, *scene->qpainterRenderBuffer()); | 148 | QCOMPARE(referenceImage, *scene->qpainterRenderBuffer()); | ||
149 | } | 149 | } | ||
150 | 150 | | |||
151 | void SceneQPainterTest::testWindow_data() | 151 | void SceneQPainterTest::testWindow_data() | ||
152 | { | 152 | { | ||
153 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | 153 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | ||
154 | 154 | | |||
155 | QTest::newRow("xdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; | | |||
156 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | 155 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | ||
157 | } | 156 | } | ||
158 | 157 | | |||
159 | void SceneQPainterTest::testWindow() | 158 | void SceneQPainterTest::testWindow() | ||
160 | { | 159 | { | ||
161 | KWin::Cursor::setPos(45, 45); | 160 | KWin::Cursor::setPos(45, 45); | ||
162 | // this test verifies that a window is rendered correctly | 161 | // this test verifies that a window is rendered correctly | ||
163 | using namespace KWayland::Client; | 162 | using namespace KWayland::Client; | ||
▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 204 | { | |||
250 | 249 | | |||
251 | QCOMPARE(referenceImage, *scene->qpainterRenderBuffer()); | 250 | QCOMPARE(referenceImage, *scene->qpainterRenderBuffer()); | ||
252 | } | 251 | } | ||
253 | 252 | | |||
254 | void SceneQPainterTest::testCompositorRestart_data() | 253 | void SceneQPainterTest::testCompositorRestart_data() | ||
255 | { | 254 | { | ||
256 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | 255 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | ||
257 | 256 | | |||
258 | QTest::newRow("xdgShellV6") << Test::XdgShellSurfaceType::XdgShellV6; | | |||
259 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | 257 | QTest::newRow("xdgWmBase") << Test::XdgShellSurfaceType::XdgShellStable; | ||
260 | } | 258 | } | ||
261 | 259 | | |||
262 | void SceneQPainterTest::testCompositorRestart() | 260 | void SceneQPainterTest::testCompositorRestart() | ||
263 | { | 261 | { | ||
264 | // this test verifies that the compositor/SceneQPainter survive a restart of the compositor and still render correctly | 262 | // this test verifies that the compositor/SceneQPainter survive a restart of the compositor and still render correctly | ||
265 | KWin::Cursor::setPos(400, 400); | 263 | KWin::Cursor::setPos(400, 400); | ||
266 | 264 | | |||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |