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