summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-14 11:02:37 (GMT)
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-07-14 11:34:15 (GMT)
commit75ab22f56052e1e4208b4c8dc1d667de9768f5b2 (patch)
tree577d72d53c67b01f37825f7d6089df8238a2bffe /tests
parent1d9cbee73b51078e92bca26dbbf4e7d33bf72471 (diff)
downloadQt-75ab22f56052e1e4208b4c8dc1d667de9768f5b2.zip
Qt-75ab22f56052e1e4208b4c8dc1d667de9768f5b2.tar.gz
Qt-75ab22f56052e1e4208b4c8dc1d667de9768f5b2.tar.bz2
Fixed the qlineedit autotest.
The commit 099a32d changed a behavior of qlineedit not to insert text when a modifier is pressed. This commit fixes the appropriate autotest.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlineedit/tst_qlineedit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qlineedit/tst_qlineedit.cpp b/tests/auto/qlineedit/tst_qlineedit.cpp
index 3519afa..7fc8316 100644
--- a/tests/auto/qlineedit/tst_qlineedit.cpp
+++ b/tests/auto/qlineedit/tst_qlineedit.cpp
@@ -3025,11 +3025,11 @@ void tst_QLineEdit::charWithAltOrCtrlModifier()
QTest::keyPress(testWidget, Qt::Key_Plus);
QCOMPARE(testWidget->text(), QString("+"));
QTest::keyPress(testWidget, Qt::Key_Plus, Qt::ControlModifier);
- QCOMPARE(testWidget->text(), QString("++"));
+ QCOMPARE(testWidget->text(), QString("+"));
QTest::keyPress(testWidget, Qt::Key_Plus, Qt::AltModifier);
- QCOMPARE(testWidget->text(), QString("+++"));
+ QCOMPARE(testWidget->text(), QString("+"));
QTest::keyPress(testWidget, Qt::Key_Plus, Qt::AltModifier | Qt::ControlModifier);
- QCOMPARE(testWidget->text(), QString("++++"));
+ QCOMPARE(testWidget->text(), QString("+"));
}
void tst_QLineEdit::leftKeyOnSelectedText()