diff options
author | Water-Team <water@pad.test.qt.nokia.com> | 2011-08-18 23:00:15 (GMT) |
---|---|---|
committer | Water-Team <water@pad.test.qt.nokia.com> | 2011-08-18 23:00:15 (GMT) |
commit | 607b7d39c32e5d1f334f7af91ad626c7acb5e460 (patch) | |
tree | 61f9e5820ef06c436037b7957e36b4e3af84ae17 /tests/auto/qlineedit/tst_qlineedit.cpp | |
parent | e58a402fbee2fc8af8cd651acafdc28525ed1314 (diff) | |
parent | e2abcf0d8e83a9403c57b1504a663310e888e2dd (diff) | |
download | Qt-607b7d39c32e5d1f334f7af91ad626c7acb5e460.zip Qt-607b7d39c32e5d1f334f7af91ad626c7acb5e460.tar.gz Qt-607b7d39c32e5d1f334f7af91ad626c7acb5e460.tar.bz2 |
Merge branch '4.8-upstream' into master-water
Diffstat (limited to 'tests/auto/qlineedit/tst_qlineedit.cpp')
-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); } |