InputMethodTest: provide a process to launch when we need a virtual keyboard
Otherwise it never claims to be active.
This commit is contained in:
parent
64178a0536
commit
92e0357fef
2 changed files with 17 additions and 1 deletions
16
autotests/integration/emptywindow.qml
Normal file
16
autotests/integration/emptywindow.qml
Normal 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"
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue