summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativelayoutitem
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-10-04 06:44:32 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-10-04 06:48:29 (GMT)
commitf25391e52af3eef68abfa3941fc48da0c52bb010 (patch)
tree0b8f02830dc0b81b144867c33253823ecc60ca2f /tests/auto/declarative/qdeclarativelayoutitem
parentda45259dbfa05c4f3b6c8c0472a65851692060e4 (diff)
downloadQt-f25391e52af3eef68abfa3941fc48da0c52bb010.zip
Qt-f25391e52af3eef68abfa3941fc48da0c52bb010.tar.gz
Qt-f25391e52af3eef68abfa3941fc48da0c52bb010.tar.bz2
Improve test coverage for declarative module.
Add additional autotests, and remove unreachable functions.
Diffstat (limited to 'tests/auto/declarative/qdeclarativelayoutitem')
-rw-r--r--tests/auto/declarative/qdeclarativelayoutitem/tst_qdeclarativelayoutitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelayoutitem/tst_qdeclarativelayoutitem.cpp b/tests/auto/declarative/qdeclarativelayoutitem/tst_qdeclarativelayoutitem.cpp
index bbdba74..cc0f633 100644
--- a/tests/auto/declarative/qdeclarativelayoutitem/tst_qdeclarativelayoutitem.cpp
+++ b/tests/auto/declarative/qdeclarativelayoutitem/tst_qdeclarativelayoutitem.cpp
@@ -82,6 +82,11 @@ void tst_qdeclarativelayoutitem::test_resizing()
QDeclarativeEngine engine;
QDeclarativeComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/layoutItem.qml"));
QDeclarativeLayoutItem* obj = static_cast<QDeclarativeLayoutItem*>(c.create());
+ QVERIFY(obj);
+ QCOMPARE(obj->minimumSize(), QSizeF(100,100));
+ QCOMPARE(obj->preferredSize(), QSizeF(200,200));
+ QCOMPARE(obj->maximumSize(), QSizeF(300,300));
+
layout->addItem(obj);
layout->setContentsMargins(0,0,0,0);
widget->setContentsMargins(0,0,0,0);