Commit 2f0f887a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Tests.QmlDesigner: fixing testStatesBaseState



We have to process events to ensure that the correct
data is actually delivered by qmlpuppet.

Change-Id: I5a8b18d20ced5c7b9279868c53fbee698a752b74
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent facd24c6
......@@ -4800,8 +4800,10 @@ void tst_TestCore::testStatesBaseState()
view->setCurrentState(state1); //set currentState "state 1"
QCOMPARE(view->currentState(), state1);
QApplication::processEvents();
textItem.setVariantProperty("text", QVariant("state 1")); //set text in state !
QVERIFY(textItem.propertyAffectedByCurrentState("text"));
QApplication::processEvents();
QCOMPARE(textItem.instanceValue("text"), QVariant("state 1"));
ModelNode newNode = view->createModelNode("QtQuick.Rectangle", 1, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment