Bring back QDoubleSpinBox test.
Returning text "1.00" instead of "1" sounds right to me. Checking the test before the widget is shown/validated sounds pointless. Change-Id: Ifc9e51dc9448a5bb3afbd566fe10524fbabc654f Reviewed-by: Kristoffer Flottorp <kristoffer.flottorp@nokia.com>
This commit is contained in:
parent
692b49abf8
commit
3ff8e94925
@ -2,5 +2,3 @@ CONFIG += testcase
|
|||||||
TARGET = tst_qdoublespinbox
|
TARGET = tst_qdoublespinbox
|
||||||
QT += widgets testlib
|
QT += widgets testlib
|
||||||
SOURCES += tst_qdoublespinbox.cpp
|
SOURCES += tst_qdoublespinbox.cpp
|
||||||
|
|
||||||
CONFIG += insignificant_test # QTBUG-21402
|
|
||||||
|
@ -854,6 +854,7 @@ void tst_QDoubleSpinBox::removeAll()
|
|||||||
void tst_QDoubleSpinBox::task54433()
|
void tst_QDoubleSpinBox::task54433()
|
||||||
{
|
{
|
||||||
DoubleSpinBox priceSpinBox;
|
DoubleSpinBox priceSpinBox;
|
||||||
|
QCOMPARE(priceSpinBox.decimals(), 2);
|
||||||
priceSpinBox.show();
|
priceSpinBox.show();
|
||||||
priceSpinBox.setRange(0.0, 999.99);
|
priceSpinBox.setRange(0.0, 999.99);
|
||||||
priceSpinBox.setDecimals(2);
|
priceSpinBox.setDecimals(2);
|
||||||
@ -1012,13 +1013,9 @@ void tst_QDoubleSpinBox::task221221()
|
|||||||
{
|
{
|
||||||
QDoubleSpinBox spin;
|
QDoubleSpinBox spin;
|
||||||
QTest::keyClick(&spin, Qt::Key_1);
|
QTest::keyClick(&spin, Qt::Key_1);
|
||||||
QCOMPARE(spin.text(), QLatin1String("1"));
|
|
||||||
spin.show();
|
spin.show();
|
||||||
#ifdef Q_WS_X11
|
|
||||||
qt_x11_wait_for_window_manager(&spin);
|
|
||||||
#endif
|
|
||||||
QVERIFY(spin.isVisible());
|
QVERIFY(spin.isVisible());
|
||||||
QCOMPARE(spin.text(), QLatin1String("1"));
|
QCOMPARE(spin.text(), QLatin1String("1.00"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QDoubleSpinBox::task255471_decimalsValidation()
|
void tst_QDoubleSpinBox::task255471_decimalsValidation()
|
||||||
|
Loading…
Reference in New Issue
Block a user