diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-10-09 10:42:35 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-10-09 11:02:32 +0200 |
commit | 7f61a351148c7d67f8f4ee6f2d2c4a9c53766297 (patch) | |
tree | 7a101d035161598603f7929206647170c81b890c | |
parent | da94d6586cbe6b9c12dec8ecc0f842aad807b0d3 (diff) | |
download | qtquickcontrols-7f61a351148c7d67f8f4ee6f2d2c4a9c53766297.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>
-rw-r--r-- | tests/auto/extras/data/tst_tumbler.qml | 35 |
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: { |