Commit c894956b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

autotests: Fix testVirtualKeyboardDBus

parent b2ae5378
......@@ -6,6 +6,14 @@
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 <QDBusConnection>
#include <QDBusMessage>
......@@ -13,9 +21,6 @@
#include <QSignalSpy>
#include <virtualkeyboardinterface.h>
#include "virtualkeyboard_dbus.h"
#include "wayland_server.h"
#include "kwin_wayland_test.h"
using KWin::VirtualKeyboardDBus;
using namespace KWin;
......@@ -39,7 +44,9 @@ void VirtualKeyboardDBusTest::initTestCase()
QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.kwin.testvirtualkeyboard"));
QSignalSpy applicationStartedSpy(kwinApp(), &Application::started);
QVERIFY(applicationStartedSpy.isValid());
kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024));
QVERIFY(waylandServer()->init(s_socketName));
QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2));
static_cast<WaylandTestApplication *>(kwinApp())->setInputMethodServerToStart("internal");
kwinApp()->start();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment