qt6-bb10/tests/auto/corelib
Edward Welbourne 4389b0c429 Report as available every QTimeZone(qint32).id() result
The QTimeZone(id) constructor accepts these IDs, but
isTimeZoneIdAvailable() did not admit to this. Although we cannot
sensibly list all 183,047 of them in availableTimeZoneIds(), we should
not claim they are unavailable. The custom QTZ constructor needs to
know when the ID it's been given is an IANA one (to refuse to use it),
so it has to be able ask the backends for "is this IANA", so the UTC
backend still has to report these IDs as invalid, leaving the QDT
frontend to include the check for these offset zones.

Extend isTimeZoneIdAvailable() test to include every offset-zone's ID
within QTZ's recognized range of offsets. Although the actual range
accepted by offsetFromUtcString() is wider, bounded by ±24:59:59, the
constructor from offset seconds (rather than offset string) is bounded
by ±16 hours.

Pick-to: 6.6 6.5
Fixes: QTBUG-118586
Change-Id: Id9b378aee122ec841635584367022fcb47041fdd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-10-30 12:43:14 +02:00
..
animation QSequentialAnimationGroup: extend bindable property unit tests 2023-09-03 18:20:21 +02:00
global is_virtual_base_of: suppress warnings in the test 2023-09-28 09:40:23 +02:00
io QStorageInfo/Linux: rewrite the label retriever to use device IDs 2023-10-21 15:21:24 -07:00
ipc IPC: Move the legacy key to the QNativeIpcKey 2023-09-17 18:10:18 -07:00
itemmodels QItemSelectionModel: don't warn when destroying the model 2023-09-22 01:42:45 +02:00
kernel qcore_unix: port qt_safe_poll to QDeadlineTimer 2023-10-24 18:29:45 +03:00
mimetypes QMimeType: simplify implementation of filterString 2023-09-13 23:27:44 +02:00
platform Android: add an appless test that recreates QGuiApplication 2023-10-26 20:04:51 +02:00
plugin QTemporaryFile(Name): don't make the path absolute on generation 2023-10-26 11:36:46 -07:00
serialization wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
text Use localized time-zone abbreviations or offset 2023-10-27 10:52:48 +02:00
thread wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
time Report as available every QTimeZone(qint32).id() result 2023-10-30 12:43:14 +02:00
tools QSP/QWP: introduce owner_before, owner_equal, owner_hash 2023-10-26 19:24:40 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00