Fix expected failure in TextEdit textInput test.
Input method events should be delivered to the input panels input item, not the canvas. Change-Id: I9385a66bdea40311f9fe5f3817ff815991575e4a Reviewed-by: Martin Jones <martin.jones@nokia.com>
This commit is contained in:
parent
1e41c724c5
commit
a0d18924b5
|
@ -1922,8 +1922,7 @@ void tst_qquicktextedit::textInput()
|
|||
// test that input method event is committed
|
||||
QInputMethodEvent event;
|
||||
event.setCommitString( "Hello world!", 0, 0);
|
||||
QGuiApplication::sendEvent(&view, &event);
|
||||
QEXPECT_FAIL("", "QTBUG-21689", Abort);
|
||||
QGuiApplication::sendEvent(qGuiApp->inputPanel()->inputItem(), &event);
|
||||
QCOMPARE(edit->text(), QString("Hello world!"));
|
||||
|
||||
// QTBUG-12339
|
||||
|
|
Loading…
Reference in New Issue