Fix inputmethodtest
We needed to simulate a touch event so that it doesn't decide to ignore the next events.
This commit is contained in:
parent
a5a2deef60
commit
a9ccfba768
1 changed files with 9 additions and 0 deletions
|
@ -57,6 +57,13 @@ private Q_SLOTS:
|
|||
void testEnableActive();
|
||||
void testHidePanel();
|
||||
void testSwitchFocusedSurfaces();
|
||||
|
||||
private:
|
||||
void touchNow() {
|
||||
static int time = 0;
|
||||
kwinApp()->platform()->touchDown(0, {100, 100}, ++time);
|
||||
kwinApp()->platform()->touchUp(0, ++time);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@ -87,6 +94,7 @@ void InputMethodTest::initTestCase()
|
|||
|
||||
void InputMethodTest::init()
|
||||
{
|
||||
touchNow();
|
||||
QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Seat |
|
||||
Test::AdditionalWaylandInterface::TextInputManagerV2 |
|
||||
Test::AdditionalWaylandInterface::InputMethodV1 |
|
||||
|
@ -129,6 +137,7 @@ void InputMethodTest::testOpenClose()
|
|||
QVERIFY(surfaceConfigureRequestedSpy.wait());
|
||||
|
||||
// Show the keyboard
|
||||
touchNow();
|
||||
textInput->showInputPanel();
|
||||
QVERIFY(clientAddedSpy.wait());
|
||||
|
||||
|
|
Loading…
Reference in a new issue