summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-10-09 10:42:35 +0200
committerMitch Curtis <mitch.curtis@qt.io>2019-10-09 13:35:23 +0200
commit3735082bb7fc171b491edc371b807e55c11c02f2 (patch)
tree5ea8378b4edc59b67fb027a1546b00acaa3d94c9
parent827d7680f84b24427f6fc501ba21cb8445679bc3 (diff)
downloadqtquickcontrols-3735082bb7fc171b491edc371b807e55c11c02f2.tar.gz
Remove test_resizeAfterFlicking from tst_tumbler
This is causing flakiness in CI, and tests a weird edge case, so its value as a test is very low. Change-Id: Iaeb2633bd270dc8e88420ace5efe9ab156339733 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 7f61a351148c7d67f8f4ee6f2d2c4a9c53766297) Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r--tests/auto/extras/data/tst_tumbler.qml35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/auto/extras/data/tst_tumbler.qml b/tests/auto/extras/data/tst_tumbler.qml
index 5585b5db..6f207b4b 100644
--- a/tests/auto/extras/data/tst_tumbler.qml
+++ b/tests/auto/extras/data/tst_tumbler.qml
@@ -326,41 +326,6 @@ Item {
verify(secondItem.y < thirdItem.y);
}
- property Component oneHundredItemColumn: TumblerColumn {
- model: ListModel {
- Component.onCompleted: {
- for (var i = 0; i < 100; ++i) {
- append({value: i.toString()});
- }
- }
- }
- }
-
- function test_resizeAfterFlicking() {
- var tumbler = createTemporaryObject(tumblerComponent, container);
- verify(tumbler);
-
- // Test QTBUG-40367 (which is actually invalid because it was my fault :)).
- var column = oneHundredItemColumn.createObject(tumbler);
- compare(tumbler.addColumn(column), column);
- waitForRendering(tumbler);
-
- // Flick in some direction.
- var pos = Qt.point(columnXCenter(tumbler, 0), tumbler.__style.padding.top);
- mouseDrag(tumbler, pos.x, pos.y, 0, tumbler.height - tumbler.__style.padding.bottom,
- Qt.LeftButton, Qt.NoModifier, 300);
- tryCompare(tumbler.__viewAt(0), "offset", Settings.styleName === "Flat" ? 6.0 : 4.0);
-
- tumbler.height += 100;
- var padding = tumbler.__style.padding;
- compare(tumbler.__style.__delegateHeight,
- (tumbler.height - padding.top - padding.bottom) / tumbler.__style.visibleItemCount);
- waitForRendering(tumbler);
- pos = itemCenterPos(tumbler, 0, 1);
- var ninetyEighthItem = tumbler.__viewAt(0).itemAt(pos.x, pos.y);
- verify(ninetyEighthItem);
- }
-
property Component dayOfMonthColumn: TumblerColumn {
model: ListModel {
Component.onCompleted: {