diff options
author | Caroline Chao <caroline.chao@digia.com> | 2013-04-10 11:32:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-11 16:09:10 +0200 |
commit | 7fe2b4a4d9b2c082d08c9380bbcce46ed7527585 (patch) | |
tree | fe6d4dd9c6ec513fa6dca50e935629ef3c5cee73 /src/imports | |
parent | 818b6af3a643dcbfc7bb2c5a40eae8f5cb6900b6 (diff) |
Testlib: Fix qml objects not deleted in TestCase
After destroy() been called in the test function.
wait(0) is used to call processEvents().
Task-number: QTBUG-30523
Change-Id: I208f213e2de6b530dd0965b301d046aee0182d9b
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/testlib/TestCase.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index fbfad28209..5484d5a96b 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -682,6 +682,9 @@ Item { qtest_runFunction(prop, null, isBenchmark) } qtest_results.finishTestFunction() + // wait(0) will call processEvents() so objects marked for deletion + // in the test function will be deleted. + wait(0) qtest_results.skipped = false } |