diff options
author | Charles Yin <charles.yin@nokia.com> | 2011-07-26 13:46:54 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-29 02:21:16 +0200 |
commit | a2c0390468b91a3f8a97a3bbabc2f9c98e0d105a (patch) | |
tree | a2f8206a8d42d18d21bc051fe1a6df1584c10dcc /tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp | |
parent | ade2ef0a3e2fcf92a153f5e44f726ee603df12aa (diff) |
Add notify signals for QIntvalidator, QDoubleValidator, QRegExpValidator
Task-number:QTBUG-19956
Change-Id: I5ab5e4494189ece5b0eb1f63e73e49cb2c4e9656
Reviewed-by:Michael Brasser
Reviewed-on: http://codereview.qt.nokia.com/2147
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp')
-rw-r--r-- | tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp b/tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp index d8ef92a439..23cd5b1ef1 100644 --- a/tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp +++ b/tests/auto/qregexpvalidator/tst_qregexpvalidator.cpp @@ -115,9 +115,12 @@ void tst_QRegExpValidator::validate() QFETCH( int, state ); QRegExpValidator rv( 0 ); + QSignalSpy spy(&rv, SIGNAL(regExpChanged(const QRegExp&))); + rv.setRegExp( QRegExp( rx ) ); int dummy; QCOMPARE( (int)rv.validate( value, dummy ), state ); + QCOMPARE(spy.count(), 1); } QTEST_MAIN(tst_QRegExpValidator) |