aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp')
-rw-r--r--tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp b/tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp
index 16365eeaa8..55f93c62c9 100644
--- a/tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp
+++ b/tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp
@@ -71,6 +71,8 @@ private slots:
void refreshExpressionsRootContext();
void qtbug_22535();
+ void evalAfterInvalidate();
+
private:
QQmlEngine engine;
};
@@ -647,6 +649,16 @@ void tst_qqmlcontext::qtbug_22535()
delete o;
}
+void tst_qqmlcontext::evalAfterInvalidate()
+{
+ QQmlEngine engine;
+ QQmlComponent component(&engine, testFileUrl("evalAfterInvalidate.qml"));
+ QScopedPointer<QObject> o(component.create());
+
+ QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
+ QCoreApplication::processEvents();
+}
+
QTEST_MAIN(tst_qqmlcontext)
#include "tst_qqmlcontext.moc"