diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-08-18 00:24:34 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-08-18 00:24:34 (GMT) |
commit | 5e435bfcad5a05c775c9d45edbd2659c87416754 (patch) | |
tree | 43d7cd267662148fda50387659a086562f1ca39e /tests | |
parent | f30cf8d452afd8e279384fe6a6a10216c7d52304 (diff) | |
parent | 323e40b6bec0cbfab4c2b8d7a18e97304b3f6e47 (diff) | |
download | Qt-5e435bfcad5a05c775c9d45edbd2659c87416754.zip Qt-5e435bfcad5a05c775c9d45edbd2659c87416754.tar.gz Qt-5e435bfcad5a05c775c9d45edbd2659c87416754.tar.bz2 |
Merge branch 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration:
Handle CloseSoftwareInputPanel event in QCoeFepInputContext
Fix delayed password masking mid-string.
don't crash when destroying codec list
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qlineedit/tst_qlineedit.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qlineedit/tst_qlineedit.cpp b/tests/auto/qlineedit/tst_qlineedit.cpp index 6abbdcd..2c88561 100644 --- a/tests/auto/qlineedit/tst_qlineedit.cpp +++ b/tests/auto/qlineedit/tst_qlineedit.cpp @@ -1770,6 +1770,13 @@ void tst_QLineEdit::passwordEchoDelay() QApplication::sendEvent(testWidget, &ev); QCOMPARE(testWidget->displayText(), QString(7, fillChar) + QLatin1Char('7')); + testWidget->setCursorPosition(3); + QCOMPARE(testWidget->displayText(), QString(7, fillChar) + QLatin1Char('7')); + QTest::keyPress(testWidget, 'a'); + QCOMPARE(testWidget->displayText(), QString(3, fillChar) + QLatin1Char('a') + QString(5, fillChar)); + QTest::keyPress(testWidget, Qt::Key_Backspace); + QCOMPARE(testWidget->displayText(), QString(8, fillChar)); + // restore clean state testWidget->setEchoMode(QLineEdit::Normal); } |