diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-05 07:32:34 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-05 07:32:34 (GMT) |
commit | 7dc306a32b12dcd783714fbb6078e100bc52f32e (patch) | |
tree | 139df3623517a9b0966fe05e4998920ed5d78fbb /tests/auto/declarative | |
parent | 26cae0653332caf0b4e315fd35fd59469c66bac9 (diff) | |
download | Qt-7dc306a32b12dcd783714fbb6078e100bc52f32e.zip Qt-7dc306a32b12dcd783714fbb6078e100bc52f32e.tar.gz Qt-7dc306a32b12dcd783714fbb6078e100bc52f32e.tar.bz2 |
Test the currentSection property
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/listview/tst_listview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/declarative/listview/tst_listview.cpp b/tests/auto/declarative/listview/tst_listview.cpp index b8f87b7..5575ace 100644 --- a/tests/auto/declarative/listview/tst_listview.cpp +++ b/tests/auto/declarative/listview/tst_listview.cpp @@ -671,6 +671,7 @@ void tst_QmlGraphicsListView::spacing() } listview->setSpacing(10); + QVERIFY(listview->spacing() == 10); // Confirm items positioned correctly itemCount = findItems<QmlGraphicsItem>(viewport, "wrapper").count(); @@ -723,6 +724,11 @@ void tst_QmlGraphicsListView::sections() QCOMPARE(item->y(), qreal(i*20 + ((i+4)/5) * 20)); } + QVERIFY(listview->currentSection() == "0"); + + listview->setViewportY(140); + QVERIFY(listview->currentSection() == "1"); + delete canvas; } |