diff options
author | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-09-25 16:54:53 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-10-06 10:29:18 +0300 |
commit | 3ba4e768e98fae888e51795a2f4ac4913d0a0fc0 (patch) | |
tree | 8abf3eff512df697dc26a32952a826f9313698d3 /tests | |
parent | 378644d9420825993bc8a9ebee93fa713385fc38 (diff) |
Add properties for nested state machines.
Change-Id: I80893af6755ca9b731c0701a38b55b8596f84f94
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/scion/tst_scion.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/scion/tst_scion.cpp b/tests/auto/scion/tst_scion.cpp index 7f6bcb5..1cc247b 100644 --- a/tests/auto/scion/tst_scion.cpp +++ b/tests/auto/scion/tst_scion.cpp @@ -17,6 +17,7 @@ ****************************************************************************/ #include <QtTest/QtTest> +#include <QCoreApplication> #include <QJsonDocument> #include <QtScxml/qscxmlparser.h> @@ -214,6 +215,7 @@ void TestScion::dynamic() if (testStatus == TestFails) QEXPECT_FAIL("", "This is expected to fail", Abort); QVERIFY(runTest(stateMachine.data(), testDescription.object())); + QCoreApplication::processEvents(); // flush any pending events } static QStringList getStates(const QJsonObject &obj, const QString &key) @@ -260,6 +262,7 @@ void TestScion::compiled() if (testStatus == TestFails) QEXPECT_FAIL("", "This is expected to fail", Abort); QVERIFY(runTest(stateMachine.data(), testDescription.object())); + QCoreApplication::processEvents(); // flush any pending events } static bool verifyStates(QScxmlStateMachine *stateMachine, const QJsonObject &stateDescription, const QString &key, int counter) |