summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmldebug
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-11 03:13:14 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-11 03:13:14 (GMT)
commit199d5e4f0a0e72fef2c59aaefe1f843592db937e (patch)
treed8e39e722eff8fd2f79505e352f24ff3f894619a /tests/auto/declarative/qmldebug
parent8d8b2e46a7c0a7323ecbbbddc772fdb240d4373d (diff)
downloadQt-199d5e4f0a0e72fef2c59aaefe1f843592db937e.zip
Qt-199d5e4f0a0e72fef2c59aaefe1f843592db937e.tar.gz
Qt-199d5e4f0a0e72fef2c59aaefe1f843592db937e.tar.bz2
Clean up
Diffstat (limited to 'tests/auto/declarative/qmldebug')
-rw-r--r--tests/auto/declarative/qmldebug/tst_qmldebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmldebug/tst_qmldebug.cpp b/tests/auto/declarative/qmldebug/tst_qmldebug.cpp
index 7615f9b..82e74ce 100644
--- a/tests/auto/declarative/qmldebug/tst_qmldebug.cpp
+++ b/tests/auto/declarative/qmldebug/tst_qmldebug.cpp
@@ -330,9 +330,11 @@ void tst_QmlDebug::watch_object()
QmlDebugEnginesQuery *q_engines = m_dbg->queryAvailableEngines(this);
waitForQuery(q_engines);
+ Q_ASSERT(q_engines->engines().count() > 0);
QmlDebugRootContextQuery *q_context = m_dbg->queryRootContexts(q_engines->engines()[0].debugId(), this);
waitForQuery(q_context);
+ Q_ASSERT(q_context->rootContext().objects().count() > 0);
QmlDebugObjectQuery *q_obj = m_dbg->queryObject(q_context->rootContext().objects()[0], this);
waitForQuery(q_obj);