QDeclarativeDebug: Fix autotest
authorKai Koehne <kai.koehne@nokia.com>
Fri, 20 May 2011 12:25:24 +0000 (14:25 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Fri, 20 May 2011 12:51:07 +0000 (14:51 +0200)
Update the number of objects to be expected

tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp

index dba2007..b6f5c94 100644 (file)
@@ -1027,7 +1027,7 @@ void tst_QDeclarativeDebug::setBindingForObject()
     // set handler
     //
     rootObject = findRootObject();
-    QCOMPARE(rootObject.children().size(), 4); // Rectangle, Text, MouseArea, QDeclarativeComponentAttached
+    QCOMPARE(rootObject.children().size(), 5); // Rectangle, Text, MouseArea, Component.onCompleted, NonScriptPropertyElement
     QDeclarativeDebugObjectReference mouseAreaObject = rootObject.children().at(2);
     QDeclarativeDebugObjectQuery *q_obj = m_dbg->queryObjectRecursive(mouseAreaObject, this);
     waitForQuery(q_obj);