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:
Andrew den Exter 2011-11-09 11:29:15 +10:00 committed by Qt by Nokia
parent 1e41c724c5
commit a0d18924b5
1 changed files with 1 additions and 2 deletions

View File

@ -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