diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-09 01:41:18 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-09 01:41:18 (GMT) |
commit | 5405740678314389e6e5477a3ed76819a60aeb37 (patch) | |
tree | cb1110f200bdd4ff6976d61ca438a5585b953b95 /tests | |
parent | bb07e7d2f4f3e8940ebcc12334b4b723e450d374 (diff) | |
download | Qt-5405740678314389e6e5477a3ed76819a60aeb37.zip Qt-5405740678314389e6e5477a3ed76819a60aeb37.tar.gz Qt-5405740678314389e6e5477a3ed76819a60aeb37.tar.bz2 |
Ensure GridView content position is stable when moving items.
Task-number: QTBUG-9697
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp index dd594774..7add9c6 100644 --- a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp +++ b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp @@ -578,6 +578,11 @@ void tst_QDeclarativeGridView::moved() QCOMPARE(number->text(), model.number(i)); } + // ensure content position is stable + gridview->setContentY(0); + model.moveItem(10, 0); + QVERIFY(gridview->contentY() == 0); + delete canvas; } |