diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-08-06 09:20:59 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-08-06 09:22:17 (GMT) |
commit | 52e1c36f13a41883231880fab3f0160b02d3878e (patch) | |
tree | 39f4fad9c3e7fcaef123e5a8e3104fbbe77bd35a /tests/auto | |
parent | c8eca7e16bc8c48d2b24dd72d5d3082b6e348714 (diff) | |
download | Qt-52e1c36f13a41883231880fab3f0160b02d3878e.zip Qt-52e1c36f13a41883231880fab3f0160b02d3878e.tar.gz Qt-52e1c36f13a41883231880fab3f0160b02d3878e.tar.bz2 |
Fixes autotest task253125_lineEditCompletion in QCompleter
Reviewed-by: paul
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qcompleter/tst_qcompleter.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qcompleter/tst_qcompleter.cpp b/tests/auto/qcompleter/tst_qcompleter.cpp index a65490d..4010752 100644 --- a/tests/auto/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/qcompleter/tst_qcompleter.cpp @@ -1316,14 +1316,20 @@ void tst_QCompleter::task253125_lineEditCompletion() edit.show(); edit.setFocus(); - QTest::qWait(100); +#ifdef Q_WS_X11 + qt_x11_wait_for_window_manager(&edit); +#endif + QTest::qWait(100); QTest::keyClick(&edit, 'i'); QCOMPARE(edit.completer()->currentCompletion(), QString("iota")); QTest::keyClick(edit.completer()->popup(), Qt::Key_Down); QTest::keyClick(edit.completer()->popup(), Qt::Key_Enter); QCOMPARE(edit.text(), QString("iota")); + + delete completer; + delete model; } void tst_QCompleter::task247560_keyboardNavigation() |