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