Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/colorcorrect_nightcolor_test.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 36 | private Q_SLOTS: | |||
---|---|---|---|---|---|
44 | void testChangeConfiguration(); | 44 | void testChangeConfiguration(); | ||
45 | void testAutoLocationUpdate(); | 45 | void testAutoLocationUpdate(); | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | void ColorCorrectNightColorTest::initTestCase() | 48 | void ColorCorrectNightColorTest::initTestCase() | ||
49 | { | 49 | { | ||
50 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 50 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
51 | QVERIFY(workspaceCreatedSpy.isValid()); | 51 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
52 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
53 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 52 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
53 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
54 | 54 | | |||
55 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 55 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
56 | 56 | | |||
57 | kwinApp()->start(); | 57 | kwinApp()->start(); | ||
58 | QVERIFY(workspaceCreatedSpy.wait()); | 58 | QVERIFY(workspaceCreatedSpy.wait()); | ||
59 | waylandServer()->initWorkspace(); | 59 | waylandServer()->initWorkspace(); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
▲ Show 20 Lines • Show All 277 Lines • Show Last 20 Lines |