Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/plasma_surface_test.cpp
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Line(s) | 210 | { | |||
---|---|---|---|---|---|
236 | QCOMPARE(screensChangedSpy.count(), 1); | 236 | QCOMPARE(screensChangedSpy.count(), 1); | ||
237 | QCOMPARE(screens()->count(), 2); | 237 | QCOMPARE(screens()->count(), 2); | ||
238 | QCOMPARE(screens()->geometry(0), geometries.at(0)); | 238 | QCOMPARE(screens()->geometry(0), geometries.at(0)); | ||
239 | QCOMPARE(screens()->geometry(1), geometries.at(1)); | 239 | QCOMPARE(screens()->geometry(1), geometries.at(1)); | ||
240 | 240 | | |||
241 | QCOMPARE(c->frameGeometry(), QRect(590, 649, 100, 50)); | 241 | QCOMPARE(c->frameGeometry(), QRect(590, 649, 100, 50)); | ||
242 | 242 | | |||
243 | // change size of window | 243 | // change size of window | ||
244 | QSignalSpy geometryChangedSpy(c, &AbstractClient::geometryShapeChanged); | 244 | QSignalSpy frameGeometryChangedSpy(c, &AbstractClient::frameGeometryChanged); | ||
245 | QVERIFY(geometryChangedSpy.isValid()); | 245 | QVERIFY(frameGeometryChangedSpy.isValid()); | ||
246 | Test::render(surface.data(), QSize(200, 100), Qt::red); | 246 | Test::render(surface.data(), QSize(200, 100), Qt::red); | ||
247 | QVERIFY(geometryChangedSpy.wait()); | 247 | QVERIFY(frameGeometryChangedSpy.wait()); | ||
248 | QCOMPARE(c->frameGeometry(), QRect(540, 616, 200, 100)); | 248 | QCOMPARE(c->frameGeometry(), QRect(540, 616, 200, 100)); | ||
249 | } | 249 | } | ||
250 | 250 | | |||
251 | void PlasmaSurfaceTest::testOSDPlacementManualPosition_data() | 251 | void PlasmaSurfaceTest::testOSDPlacementManualPosition_data() | ||
252 | { | 252 | { | ||
253 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | 253 | QTest::addColumn<Test::XdgShellSurfaceType>("type"); | ||
254 | 254 | | |||
255 | QTest::newRow("xdgv6") << Test::XdgShellSurfaceType::XdgShellV6; | 255 | QTest::newRow("xdgv6") << Test::XdgShellSurfaceType::XdgShellV6; | ||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |