Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/plasma_surface_test.cpp
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Line(s) | 211 | { | |||
---|---|---|---|---|---|
224 | QCOMPARE(c->windowType(), NET::OnScreenDisplay); | 224 | QCOMPARE(c->windowType(), NET::OnScreenDisplay); | ||
225 | QVERIFY(c->isOnScreenDisplay()); | 225 | QVERIFY(c->isOnScreenDisplay()); | ||
226 | QCOMPARE(c->geometry(), QRect(590, 649, 100, 50)); | 226 | QCOMPARE(c->geometry(), QRect(590, 649, 100, 50)); | ||
227 | 227 | | |||
228 | // change the screen size | 228 | // change the screen size | ||
229 | QSignalSpy screensChangedSpy(screens(), &Screens::changed); | 229 | QSignalSpy screensChangedSpy(screens(), &Screens::changed); | ||
230 | QVERIFY(screensChangedSpy.isValid()); | 230 | QVERIFY(screensChangedSpy.isValid()); | ||
231 | const QVector<QRect> geometries{QRect(0, 0, 1280, 1024), QRect(1280, 0, 1280, 1024)}; | 231 | const QVector<QRect> geometries{QRect(0, 0, 1280, 1024), QRect(1280, 0, 1280, 1024)}; | ||
232 | QMetaObject::invokeMethod(kwinApp()->platform(), "outputGeometriesChanged", | 232 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", | ||
233 | Qt::DirectConnection, | 233 | Qt::DirectConnection, | ||
234 | Q_ARG(int, 2), | ||||
234 | Q_ARG(QVector<QRect>, geometries)); | 235 | Q_ARG(QVector<QRect>, geometries)); | ||
235 | QVERIFY(screensChangedSpy.wait()); | 236 | QVERIFY(screensChangedSpy.wait()); | ||
236 | QCOMPARE(screensChangedSpy.count(), 1); | 237 | QCOMPARE(screensChangedSpy.count(), 1); | ||
237 | QCOMPARE(screens()->count(), 2); | 238 | QCOMPARE(screens()->count(), 2); | ||
238 | QCOMPARE(screens()->geometry(0), geometries.at(0)); | 239 | QCOMPARE(screens()->geometry(0), geometries.at(0)); | ||
239 | QCOMPARE(screens()->geometry(1), geometries.at(1)); | 240 | QCOMPARE(screens()->geometry(1), geometries.at(1)); | ||
240 | 241 | | |||
241 | QCOMPARE(c->geometry(), QRect(590, 649, 100, 50)); | 242 | QCOMPARE(c->geometry(), QRect(590, 649, 100, 50)); | ||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |