summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2015-12-24 01:41:49 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2016-01-15 11:05:55 +0000
commitfd1cd937085ff5a4f40db78c41b8f5bdff694f9d (patch)
treeb31ac71b68024176c4b733719d8b7e0fc5f14a7f
parent96f1bb07eb420d5e01f1ea0273c7c9223adaf504 (diff)
tst_qquicklistview: Share window in stickyPositioning test.
Since it has a lot of table driven tests, if we reuse the window like the other table driven tests do, the total time is a lot lower (~2 seconds lower for just this test for me). Change-Id: I01ce38442f70d592d70ba584df3e0783956ebeaf Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r--tests/auto/quick/qquicklistview/tst_qquicklistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
index 5108abcb12..12405e32c0 100644
--- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
+++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
@@ -7481,7 +7481,7 @@ void tst_QQuickListView::stickyPositioning()
QFETCH(QPointF, headerPos);
QFETCH(QPointF, footerPos);
- QQuickView *window = createView();
+ QQuickView *window = getView();
QaimModel model;
for (int i = 0; i < 20; i++)
@@ -7524,7 +7524,7 @@ void tst_QQuickListView::stickyPositioning()
QCOMPARE(actualPos, footerPos);
}
- delete window;
+ releaseView(window);
}
void tst_QQuickListView::stickyPositioning_data()