Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/activities_test.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | void ActivitiesTest::initTestCase() | 59 | void ActivitiesTest::initTestCase() | ||
60 | { | 60 | { | ||
61 | qRegisterMetaType<KWin::ShellClient*>(); | 61 | qRegisterMetaType<KWin::ShellClient*>(); | ||
62 | qRegisterMetaType<KWin::AbstractClient*>(); | 62 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
63 | qRegisterMetaType<KWin::Deleted*>(); | 63 | qRegisterMetaType<KWin::Deleted*>(); | ||
64 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 64 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
65 | QVERIFY(workspaceCreatedSpy.isValid()); | 65 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
66 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 66 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
67 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
68 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 67 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
68 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
69 | 69 | | |||
70 | kwinApp()->setUseKActivities(true); | 70 | kwinApp()->setUseKActivities(true); | ||
71 | kwinApp()->start(); | 71 | kwinApp()->start(); | ||
72 | QVERIFY(workspaceCreatedSpy.wait()); | 72 | QVERIFY(workspaceCreatedSpy.wait()); | ||
73 | QCOMPARE(screens()->count(), 2); | 73 | QCOMPARE(screens()->count(), 2); | ||
74 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 74 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
75 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 75 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
76 | setenv("QT_QPA_PLATFORM", "wayland", true); | 76 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |