InputMethodTest: provide a process to launch when we need a virtual keyboard

Otherwise it never claims to be active.
This commit is contained in:
Aleix Pol 2021-05-10 18:06:29 +02:00
parent 64178a0536
commit 92e0357fef
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,16 @@
/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick.Controls 2.0
ApplicationWindow
{
visible: true
title: "Banana"
}

View file

@ -68,7 +68,7 @@ void InputMethodTest::initTestCase()
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("qml " + QFINDTESTDATA("emptywindow.qml"));
kwinApp()->start();
QVERIFY(applicationStartedSpy.wait());
QCOMPARE(screens()->count(), 2);