tst_QDateTimeEdit::stepModifierPressAndHold(): tweak start date
The test can collide with a 1960-01-01 transition in some zones, so move it to Jan 2nd to avoid that. Pick-to: 6.5 Change-Id: I5286cadc0de0b66283253b0ac736f23a2add0c8f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>bb10
parent
7b9e7f8002
commit
496ebd8677
|
|
@ -4510,7 +4510,11 @@ void tst_QDateTimeEdit::stepModifierPressAndHold()
|
|||
QFETCH(Qt::KeyboardModifiers, modifiers);
|
||||
QFETCH(int, expectedStepModifier);
|
||||
|
||||
const QDate startDate(2000, 1, 1);
|
||||
// Some west African zones (e.g. Niamey, Conakry) changed from 1 hour west
|
||||
// of GMT to GMT at the start of 1960; and spy.size() can get as high as 4,
|
||||
// causing the expectedDate below, when expectedStepModifier is -10, to land
|
||||
// in a transition gap for these zones, if we use Jan 1st; so use Jan 2nd.
|
||||
const QDate startDate(2000, 1, 2);
|
||||
|
||||
testWidget->hide();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue