summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-14 11:02:37 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-14 11:07:20 (GMT)
commit9210e8cdc83b6812d10f5f5847d05703ef2e5f7c (patch)
tree950008850c6e81c0504f3d57d4ec31f69b44a0b1
parent4afd73f94b094d858c000432fcbbb134109d0323 (diff)
downloadQt-9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.zip
Qt-9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.tar.gz
Qt-9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.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.
-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()