From a0d18924b5032d4d94df169359e6e0a0fe8151ae Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Wed, 9 Nov 2011 11:29:15 +1000 Subject: 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 --- tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp b/tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp index 29a94b09fd..a23fc763bd 100644 --- a/tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp +++ b/tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp @@ -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 -- cgit v1.2.3