diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2023-04-19 17:42:14 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2023-05-04 15:05:18 +0200 |
commit | 4bf82909f144e2e1c0231a90c42bd120a549c9da (patch) | |
tree | 7a68b238bb31950b2231782957bb5bc7316dd2fb /tests | |
parent | 0e7e1c33965c43932e6c0228acc2f68259533482 (diff) | |
download | qtbase-4bf82909f144e2e1c0231a90c42bd120a549c9da.tar.gz |
Make tst_QFont::italicOblique failures easier to debug
It fails locally for me on Lucida Calligraphy.
Lucida Calligraphy only has one style though: Italic.
Change-Id: I42442cb922132a00f09084cef9c739196a9a53c2
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/gui/text/qfont/tst_qfont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/text/qfont/tst_qfont.cpp b/tests/auto/gui/text/qfont/tst_qfont.cpp index 76d844b007..aaac904714 100644 --- a/tests/auto/gui/text/qfont/tst_qfont.cpp +++ b/tests/auto/gui/text/qfont/tst_qfont.cpp @@ -150,7 +150,7 @@ void tst_QFont::italicOblique() continue; } QFont f = QFontDatabase::font(family, style, 12); - QVERIFY(f.italic()); + QVERIFY2(f.italic(), qPrintable(QString::asprintf("Failed for font \"%ls\"", f.family().utf16()))); } } } |