From 913bff4080d649b3ab05481c9535fc59a8341c37 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 25 Aug 2011 09:21:28 +0200 Subject: [PATCH] Fix the tst_qdeclarativedebug auto test. The creation order in QML is not defined. Change-Id: I4bc3d9e56e32a0c907cdaef9994ae66c3869a4ea Reviewed-on: http://codereview.qt.nokia.com/3800 Reviewed-by: Roberto Raggi Reviewed-by: Qt Sanity Bot --- tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp index 8ad5e31..b47579e 100644 --- a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp +++ b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp @@ -1084,7 +1084,7 @@ void tst_QDeclarativeDebug::setBindingInStates() // change the binding - QDeclarativeDebugObjectReference state = obj.children()[0]; + QDeclarativeDebugObjectReference state = obj.children()[1]; QCOMPARE(state.className(), QString("State")); QVERIFY(state.children().count() > 0); @@ -1168,7 +1168,7 @@ void tst_QDeclarativeDebug::queryObjectTree() // check state - QDeclarativeDebugObjectReference state = obj.children()[0]; + QDeclarativeDebugObjectReference state = obj.children()[1]; QCOMPARE(state.className(), QString("State")); QVERIFY(state.children().count() > 0); @@ -1184,7 +1184,7 @@ void tst_QDeclarativeDebug::queryObjectTree() // check transition - QDeclarativeDebugObjectReference transition = obj.children()[1]; + QDeclarativeDebugObjectReference transition = obj.children()[0]; QCOMPARE(transition.className(), QString("Transition")); QCOMPARE(findProperty(transition.properties(),"from").value().toString(), QString("*")); QCOMPARE(findProperty(transition.properties(),"to").value(), findProperty(state.properties(),"name").value()); -- 2.7.4