diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-09-07 17:49:46 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-09-07 17:49:46 (GMT) |
commit | 79419570ae9f9f21779b308ebcfd4f3479d7f28b (patch) | |
tree | 03a95e2fa96c92de6f6cc95cd37d44f686ea125e /tests | |
parent | ca74af31764f25557921ac70027f794d433b34d4 (diff) | |
parent | 75ff3f73544653f6828ac979a381f48e055cc3ad (diff) | |
download | Qt-79419570ae9f9f21779b308ebcfd4f3479d7f28b.zip Qt-79419570ae9f9f21779b308ebcfd4f3479d7f28b.tar.gz Qt-79419570ae9f9f21779b308ebcfd4f3479d7f28b.tar.bz2 |
Merge remote branch 'qt/4.8'
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); } |