diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-07 12:07:06 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-07 12:07:06 (GMT) |
commit | d07270161ef3d1c4b3ed29110a16eaff54333fd5 (patch) | |
tree | 8af038d0e5451cfadf906461e510bb5eaeb709da /tests | |
parent | 12f272ce159853329a26fc82dfb55b930a97a2a9 (diff) | |
download | Qt-d07270161ef3d1c4b3ed29110a16eaff54333fd5.zip Qt-d07270161ef3d1c4b3ed29110a16eaff54333fd5.tar.gz Qt-d07270161ef3d1c4b3ed29110a16eaff54333fd5.tar.bz2 |
Fix test case
qWait() enters a nested event loop, so delete laters weren't being
processed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp index 4ed12f7..51f1ce7 100644 --- a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp +++ b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp @@ -660,8 +660,10 @@ void tst_qmlecmascript::dynamicDestruction() QMetaObject::invokeMethod(object, "killOther"); QVERIFY(createdQmlObject); QTest::qWait(0); + QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion); QVERIFY(createdQmlObject); QTest::qWait(100); + QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion); QVERIFY(!createdQmlObject); QMetaObject::invokeMethod(object, "killMe"); |