summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkrequest.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2024-01-24 17:25:30 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2024-01-30 14:48:17 +0100
commit4fe7e8e51a5ed3bc28764aa6de336b55ff1e3e8d (patch)
tree19f6bb00d0c8bc1e061f6e26734670355cac56e1 /src/network/access/qnetworkrequest.cpp
parent23602b04ba89f879c04a933c82696c6143b07f6d (diff)
Rework tst_QLocale::ctor() - split up and make data-driven
There were three things going on in this test (itself a sufficient reason to split it up): * Some reporting and checking of the default locale; the reporting is duplicated in defaulted_ctor() and the check fitted more naturally there. * Checks that various combinations of language, script and territory got resolved according to likely-subtag rules. These were handled via a macro and natural candidates to become data-driven. * A test that territory is preserved when it's the only given tag (with a few known exceptions); broken out as a steparate test. In the process, give the data-rows of the likely-subtag parts names that let me extend their testing to also test construction from string. The territory-only cases can't support that, as QLocale doesn't support und_* forms of tags for unspecified language. Change-Id: Id9f0fc46f30eb887b47931bad1619255acb44266 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
0 files changed, 0 insertions, 0 deletions