diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2011-08-25 09:21:28 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-30 13:18:28 +0200 |
commit | 913bff4080d649b3ab05481c9535fc59a8341c37 (patch) | |
tree | 9cdb5cbd40fe5e6eebd5afef5bf8843b824f8007 /tests | |
parent | 7eef3bb9aa6af439f5ac01b3efb20b04d7c8ca62 (diff) |
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 <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp index 8ad5e314e4..b47579ea6a 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()); |