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