diff options
Diffstat (limited to 'tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp')
-rw-r--r-- | tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp b/tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp index 12befeb1ec..3ae40bf687 100644 --- a/tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp +++ b/tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp @@ -1395,17 +1395,14 @@ void tst_QQmlEngineDebugService::invalidContexts() QQmlContext context(m_engine); getContexts(); QCOMPARE(m_dbg->rootContext().contexts.count(), base + 1); - QQmlContextData *contextData = QQmlContextData::get(&context); + QQmlRefPointer<QQmlContextData> contextData = QQmlContextData::get(&context); contextData->invalidate(); getContexts(); QCOMPARE(m_dbg->rootContext().contexts.count(), base); - QQmlContextData *rootData = QQmlContextData::get(m_engine->rootContext()); + QQmlRefPointer<QQmlContextData> rootData = QQmlContextData::get(m_engine->rootContext()); rootData->invalidate(); getContexts(); QCOMPARE(m_dbg->rootContext().contexts.count(), 0); - contextData->setParent(rootData); // makes context valid again, but not root. - getContexts(); - QCOMPARE(m_dbg->rootContext().contexts.count(), 0); } void tst_QQmlEngineDebugService::createObjectOnDestruction() |