autotests: Fix testVirtualKeyboardDBus
This commit is contained in:
parent
b2ae5378c7
commit
c894956bba
1 changed files with 10 additions and 3 deletions
|
@ -6,6 +6,14 @@
|
||||||
|
|
||||||
SPDX-License-Identifier: GPL-2.0-or-later
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "kwin_wayland_test.h"
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "platform.h"
|
||||||
|
#include "virtualkeyboard_dbus.h"
|
||||||
|
#include "wayland_server.h"
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
#include <QDBusMessage>
|
#include <QDBusMessage>
|
||||||
|
@ -13,9 +21,6 @@
|
||||||
#include <QSignalSpy>
|
#include <QSignalSpy>
|
||||||
|
|
||||||
#include <virtualkeyboardinterface.h>
|
#include <virtualkeyboardinterface.h>
|
||||||
#include "virtualkeyboard_dbus.h"
|
|
||||||
#include "wayland_server.h"
|
|
||||||
#include "kwin_wayland_test.h"
|
|
||||||
|
|
||||||
using KWin::VirtualKeyboardDBus;
|
using KWin::VirtualKeyboardDBus;
|
||||||
using namespace KWin;
|
using namespace KWin;
|
||||||
|
@ -39,7 +44,9 @@ void VirtualKeyboardDBusTest::initTestCase()
|
||||||
QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.kwin.testvirtualkeyboard"));
|
QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.kwin.testvirtualkeyboard"));
|
||||||
QSignalSpy applicationStartedSpy(kwinApp(), &Application::started);
|
QSignalSpy applicationStartedSpy(kwinApp(), &Application::started);
|
||||||
QVERIFY(applicationStartedSpy.isValid());
|
QVERIFY(applicationStartedSpy.isValid());
|
||||||
|
kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024));
|
||||||
QVERIFY(waylandServer()->init(s_socketName));
|
QVERIFY(waylandServer()->init(s_socketName));
|
||||||
|
QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2));
|
||||||
|
|
||||||
static_cast<WaylandTestApplication *>(kwinApp())->setInputMethodServerToStart("internal");
|
static_cast<WaylandTestApplication *>(kwinApp())->setInputMethodServerToStart("internal");
|
||||||
kwinApp()->start();
|
kwinApp()->start();
|
||||||
|
|
Loading…
Reference in a new issue