qt5base-lts/tests/auto
Edward Welbourne d055abd195 Assert that special handling of '0' padding does what it should
When formatting numbers, if the fill character used to left-pad to
field widths is '0', the code delegates that padding to the
QLocaleData's ZeroPadded formatting option. Since we want the zeros
before any minus sign, and don't want to subsequently add more zeros
before it, check that this has worked as expected when calling
replaceArgEscapes(), to confirm that it doesn't need to worry about
that.

Add some tests that verify the expected behavior.

In the process, tidy up the code doing this. Rename a local variable
to match our coding style, split a long line.

Pick-to: 6.2
Change-Id: I7cc430c5bceb006cf4e226bca33da16bd2bb1937
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-08-10 19:43:03 +02:00
..
bic/data Add binary compatibility files for Qt 6.0.0 2021-04-08 06:34:13 +00:00
cmake CMake: Remove qt6_enable_object_libraries_finalizer_mode 2021-08-10 16:51:53 +02:00
concurrent Fix QtConcurrent to properly work with functors 2021-07-21 09:46:33 +02:00
corelib Assert that special handling of '0' padding does what it should 2021-08-10 19:43:03 +02:00
dbus Port QDBusServiceWatcher::watchedServices to bindable properties 2021-04-28 16:59:53 +02:00
gui Refix for avoiding huge number of tiny dashes 2021-08-10 12:00:13 +02:00
guiapplauncher
network tst_QSslSocket - replace an old certificate 2021-08-10 14:21:58 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
testlib testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
tools moc: Support BINDABLE for private properties 2021-08-06 17:25:50 +02:00
widgets Implement missing support for 'em' and 'ex' lengths in style sheet 2021-08-10 19:43:02 +02:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build minimal subset of tests in desktop static builds 2021-04-06 09:15:37 +01:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00