diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-04-23 11:16:51 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-04-23 11:25:54 +0200 |
commit | 87a09deb839c23064120b8678a20a862efd23f3a (patch) | |
tree | 2ec435e73d078a2b04d90c308a9993100e085120 | |
parent | 8e53076c585970af694f1c4eeb808f95186f43d8 (diff) | |
download | qt-creator-87a09deb839c23064120b8678a20a862efd23f3a.tar.gz |
QmlDesigner: extending auto tests
-rw-r--r-- | tests/auto/qml/qmldesigner/coretests/testcore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qmldesigner/coretests/testcore.cpp b/tests/auto/qml/qmldesigner/coretests/testcore.cpp index 854946b7e0..93266f344e 100644 --- a/tests/auto/qml/qmldesigner/coretests/testcore.cpp +++ b/tests/auto/qml/qmldesigner/coretests/testcore.cpp @@ -3941,6 +3941,9 @@ void TestCore::testStatesBaseState() QVERIFY(textItem.propertyAffectedByCurrentState("text")); QCOMPARE(textItem.instanceValue("text"), QVariant("state 1")); + ModelNode newNode = view->createModelNode("Qt/Rectangle", 4, 7); + QVERIFY(!QmlObjectNode(newNode).currentState().isBaseState()); + view->setCurrentState(view->baseState()); //set currentState base state QVERIFY(view->currentState().isBaseState()); @@ -3948,6 +3951,7 @@ void TestCore::testStatesBaseState() view->setCurrentState(state1); //set currentState "state 1" QCOMPARE(view->currentState(), state1); + QVERIFY(!view->currentState().isBaseState()); QCOMPARE(textItem.instanceValue("text"), QVariant("state 1")); view->setCurrentState(view->baseState()); //set currentState base state |