qt5base-lts/tests/auto/corelib
David Faure 0cbbba2aa5 Update shared-mime-info to the 2.1 release, adjust implementation
The spec hasn't changed, but I made the same mistake in xdgmime
(the reference implementation) and in Qt: when multiple globs match,
and the result from magic sniffing is unrelated to any of those globs,
then I used the magic result, but that's wrong, globs have priority
and one of them should be picked up.

This is now fixed in xdgmime
(https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3)
and in the expected results in shared-mime-info
(https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/99)
which this commit is also tested against.

This change also optimizes QMimeBinaryProvider::addFileNameMatches
to have the same logic as xdgmime for glob matching:
literals > extensions > other globs
As soon as one category matches, we can stop there.
This makes no difference in the overall results, in practice.

The user bug report (against the Qt implementation, actually)
is https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
as well as https://bugs.kde.org/show_bug.cgi?id=411718

Pick-to: 6.0 5.15
Change-Id: Ia0a34080427daff43c732609443ee6df8f41447c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-01-05 18:31:54 +00:00
..
animation Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
global Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
io Fix minor errors in tests 2021-01-05 12:43:09 +01:00
itemmodels Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
kernel Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
mimetypes Update shared-mime-info to the 2.1 release, adjust implementation 2021-01-05 18:31:54 +00:00
plugin Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
serialization Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
text Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
thread Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
time Add test creating QDateTime in double-DST gap in 1947 Germany 2020-12-24 19:41:48 +01:00
tools Change QLineF::setLength() to work whenever length() is non-zero 2021-01-05 12:43:09 +01:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00