qt5base-lts/tests/auto/corelib
Eike Ziller 67984b265a QMimeDatabase: Fix MIME detection issues with magics in MIME hierarchies
Assume two MIME types A and B are registered, both with the same glob
pattern, A being parent of B, A with some magic rule, and B with another
magic rule. Given a file that matches the glob pattern and the magic rule
of A, the resulting MIME type depended on the order of registration of A
and B, because it would just check if some glob matching MIME type was
also a subclass of the magic matching MIME type.

The patch prefers the the MIME type that matches by magic if that
matches by glob pattern as well (i.e. A in our example).

The "recommended checking order" of the spec does handle that case.

Task-number: QTBUG-44846
Change-Id: I2af43f6199faf9a42cd9c35d3a045441afbd6217
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
2018-08-20 07:32:58 +00:00
..
animation Extend blacklisting of tst_QSequentialAnimationGroup to macOS 10.13 2018-08-08 18:41:04 +00:00
codecs tst_qtextcodec: Use qt_test_helper functionality 2018-07-25 10:27:42 +00:00
global Avoid signed/unsigned warning in template 2018-08-16 10:10:22 +00:00
io Migrate QDir to use QRegularExpression 2018-08-19 04:03:29 +00:00
itemmodels Add support for QRegularExpression to QSortFilterProxyModel 2018-08-19 11:38:42 +00:00
kernel Modernize the "thread" feature 2018-08-17 00:34:36 +00:00
mimetypes QMimeDatabase: Fix MIME detection issues with magics in MIME hierarchies 2018-08-20 07:32:58 +00:00
plugin Enable QPluginLoader test for static builds 2018-08-03 20:26:58 +00:00
serialization Merge remote-tracking branch 'origin/5.11' into dev 2018-08-07 17:44:51 +02:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread Modernize the "thread" feature 2018-08-17 00:34:36 +00:00
tools QRegularExpression: refactor wildcard translation 2018-08-18 21:59:38 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00