qt5base-lts/tests/auto
Edward Welbourne 6a14ad4993 Perform uiLanguages() likely-adjusted processing purely on IDs
The collection of translations available to us need not have anything
to do with whether CLDR has matching data, so preserve the system UI
language list's entries as they are, rather than forcing them through
the QLocale constructor's exercise of likely sub-tag rules.

Instead, simply parse the given locale tags to QLocaleId instances and
use these in the likely-subtag processing to determine what other
entries to add to the list in addition to those supplied by the
operating system. Since going via QLocale did usually supply a
territory, that was included in the BCP 47 name, it's now possible for
the given entry to lack the language_territory name, so be sure to add
that if missing.

This incidentally reduces heap traffic and saves a fair deal of hidden
likely-subtag processing in calls to the constructor and bcp47Name().

Expand testing of QLocale::uiLanguages(), both plain and system.  In
the process, cross-link the two closely-related tests, move a comment
on one's _data() to the other's, where it really belongs, and add
reporting of the actual lists on failure. Enable MySystemLocale to
remember the requested locale's ID, before likely sub-tag processing,
so that we can make query() report results for language, script and
territory as requested, to ensure the fake system locale really does
match what was requested. The new german-britain test failed without
it, because there is no de-GB locale in CLDR.

Task-number: QTBUG-99531
Change-Id: Ide041577772c442a4413e3b9a590e11140c48f49
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-09-07 15:29:39 +02:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Change the license of CMakeLists.txt file to BSD 2022-08-26 11:33:16 +00:00
concurrent Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
corelib Perform uiLanguages() likely-adjusted processing purely on IDs 2022-09-07 15:29:39 +02:00
dbus Port tests away from using q{Set}GlobalQHashSeed 2022-08-26 14:15:24 +02:00
gui tst_qmatrixnxn: port away from deprecated APIs 2022-09-06 13:59:57 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_QSsSocket: fix verifyClientCertificate with OpenSSL 3 2022-09-05 18:29:12 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Guard windows-specific includes with Q_OS_WIN 2022-09-07 14:39:25 +02:00
printsupport tests: Fix tst_qprinterinfo for CUPS printer instances 2022-08-24 14:20:14 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Rest of QtBase tests: port away from deprecated methods 2022-08-30 22:46:35 +02:00
testlib Fix cmake warnings from using deprecated PUBLIC_LIBRARIES 2022-09-05 18:29:10 +02:00
tools qdbusxml2cpp: modify the behavior of -m/--moc option 2022-09-06 11:44:22 +02:00
wasm Adapt tests/auto/wasm for batching 2022-08-30 22:27:07 +02:00
widgets Move QMacAutoReleasePool from qglobal.h to qcore_mac_p.h 2022-09-01 13:26:30 +02:00
xml Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00