Fix expected failure in TextEdit textInput test.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 9 Nov 2011 01:29:15 +0000 (11:29 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 9 Nov 2011 08:55:01 +0000 (09:55 +0100)
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>

tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp

index 29a94b0..a23fc76 100644 (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