qt5base-lts/tests/auto/gui
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
..
image Fix compiler warning about discarded return value 2020-11-23 12:51:41 +01:00
itemmodels Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
kernel Fix weight when reading old serialized QFonts 2020-11-20 20:29:00 +00:00
math3d Use QCOMPARE(,) in preference to QVERIFY(qFuzzyCompare(,)) 2020-11-27 13:26:52 +01:00
painting Get rid of Q_COMPILER_CONSTEXPR checks 2020-11-17 21:28:11 +01:00
qopengl Disable some OpenGL and QRhi tests for offscreen backend 2020-12-01 14:14:45 +01:00
qopenglconfig Deprecate QVariant::Type 2020-10-23 09:58:57 +02:00
qvulkan CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
rhi Disable some OpenGL and QRhi tests for offscreen backend 2020-12-01 14:14:45 +01:00
text Fix tst_QFontDatabase::aliases failure with ambiguous font 2020-12-02 16:22:27 +00:00
util Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
gui.pro Remove winrt 2020-06-06 20:25:49 +02:00