diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-05-08 10:59:03 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-05-08 10:59:03 (GMT) |
commit | f64170262441cce51b52d05a2f2ba2f0021ba8e4 (patch) | |
tree | dc22f539a4474064d0604e81db7340d679063c71 /tests/auto/qstatemachine | |
parent | 58bf96d7252df3346d0f325af265873897e56172 (diff) | |
download | Qt-f64170262441cce51b52d05a2f2ba2f0021ba8e4.zip Qt-f64170262441cce51b52d05a2f2ba2f0021ba8e4.tar.gz Qt-f64170262441cce51b52d05a2f2ba2f0021ba8e4.tar.bz2 |
make sure connections and event filters are removed when state machine halts
Diffstat (limited to 'tests/auto/qstatemachine')
-rw-r--r-- | tests/auto/qstatemachine/tst_qstatemachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp index 93cd1b3..288cbec 100644 --- a/tests/auto/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp @@ -1631,6 +1631,8 @@ void tst_QStateMachine::signalTransitions() emitter.emitSignalWithNoArg(); QTRY_COMPARE(finishedSpy.count(), 1); + + emitter.emitSignalWithNoArg(); } { QStateMachine machine; @@ -1722,6 +1724,8 @@ void tst_QStateMachine::eventTransitions() QCoreApplication::processEvents(); QTRY_COMPARE(finishedSpy.count(), 1); + + QTest::mousePress(&button, Qt::LeftButton); } { QStateMachine machine; |