aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-11-09 11:29:15 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-09 09:55:01 +0100
commita0d18924b5032d4d94df169359e6e0a0fe8151ae (patch)
tree4bdd1f95d5b0838e40d9a71d3af44d840dad0e04 /tests
parent1e41c724c574d71c9c8555db3a349a6201bdfe73 (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp3
1 files changed, 1 insertions, 2 deletions
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