qt6-bb10/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 34fa01be82 Fix tst_QFontDatabase::aliases failure with ambiguous font
If the first font in the families list happens to have been
disambiguated because of duplicates, two things went wrong:

1. hasFamily() would return false for the font family, because
it does not disambiguate when checking for the family name and
only checks if the families list contains the exact string.

2. Adding aliases to the full disambiguated string is not supported,
only the family name.

The first issue has been reported separately as QTBUG-89068.

The test failure is fixed by just avoiding the fonts that
are ambiguous in the test, as it really doesn't matter which
font we pick.

Fixes: QTBUG-89008
Pick-to: 5.15 6.0
Change-Id: I829778c2e7bb6090475c34dcf9cdce58862729d6
Reviewed-by: Liang Qi <liang.qi@qt.io>
2020-12-02 16:22:27 +00:00
..
qabstracttextdocumentlayout CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcssparser Fix Qt6 todo in qcssparser 2020-09-23 17:01:29 +02:00
qfont Return a QString() if the families list is empty 2020-11-24 21:49:54 +01:00
qfontcache QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qfontdatabase Fix tst_QFontDatabase::aliases failure with ambiguous font 2020-12-02 16:22:27 +00:00
qfontmetrics Get rid of all instance usage of QFontDatabase 2020-11-03 20:36:34 +01:00
qglyphrun CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qinputcontrol CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qrawfont Get rid of all instance usage of QFontDatabase 2020-11-03 20:36:34 +01:00
qstatictext CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsyntaxhighlighter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextblock CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextcursor Make QPointer comparisons hidden friends 2020-10-23 09:32:37 +02:00
qtextdocument Fix compiler warnings from deprecated method 2020-11-27 07:28:24 +00:00
qtextdocumentfragment Fix compiler warning from deprecated function 2020-11-27 08:28:24 +01:00
qtextdocumentlayout CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextformat Fix compiler warning from deprecated function 2020-11-25 22:08:09 +01:00
qtextimagehandler Set the url to have the AtNx filename if one is found 2020-11-06 09:16:30 +00:00
qtextlayout QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
qtextlist CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextmarkdownimporter Support the markdown underline extension 2020-11-07 09:35:11 +01:00
qtextmarkdownwriter Support the markdown underline extension 2020-11-07 09:35:11 +01:00
qtextobject CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextodfwriter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextpiecetable CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtextscriptengine QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
qtexttable CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qzip CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
CMakeLists.txt Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
text.pro Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00