Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_rules_test.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | |||||
69 | void TestShellClientRules::initTestCase() | 69 | void TestShellClientRules::initTestCase() | ||
70 | { | 70 | { | ||
71 | qRegisterMetaType<KWin::ShellClient*>(); | 71 | qRegisterMetaType<KWin::ShellClient*>(); | ||
72 | qRegisterMetaType<KWin::AbstractClient*>(); | 72 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
73 | 73 | | |||
74 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 74 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
75 | QVERIFY(workspaceCreatedSpy.isValid()); | 75 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
76 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 76 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
77 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 77 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
78 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 78 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
79 | 79 | | |||
80 | kwinApp()->start(); | 80 | kwinApp()->start(); | ||
81 | QVERIFY(workspaceCreatedSpy.wait()); | 81 | QVERIFY(workspaceCreatedSpy.wait()); | ||
82 | QCOMPARE(screens()->count(), 2); | 82 | QCOMPARE(screens()->count(), 2); | ||
83 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 83 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
84 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 84 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
85 | waylandServer()->initWorkspace(); | 85 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |