summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qlineedit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/widgets/qlineedit')
-rw-r--r--tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
index 4e29688de6..9417541040 100644
--- a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
+++ b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
@@ -308,6 +308,7 @@ private slots:
void shouldShowPlaceholderText_data();
void shouldShowPlaceholderText();
+ void QTBUG1266_setInputMaskEmittingTextEdited();
protected slots:
void editingFinished();
@@ -4362,5 +4363,15 @@ void tst_QLineEdit::shouldShowPlaceholderText()
}
+void tst_QLineEdit::QTBUG1266_setInputMaskEmittingTextEdited()
+{
+ QLineEdit lineEdit;
+ lineEdit.setText("test");
+ QSignalSpy spy(&lineEdit, SIGNAL(textEdited(QString)));
+ lineEdit.setInputMask("AAAA");
+ lineEdit.setInputMask(QString());
+ QVERIFY(spy.count() == 0);
+}
+
QTEST_MAIN(tst_QLineEdit)
#include "tst_qlineedit.moc"