summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text/qrawfont
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/gui/text/qrawfont')
-rw-r--r--tests/auto/gui/text/qrawfont/tst_qrawfont.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp b/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
index 20bfaf99dd..a39277b093 100644
--- a/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
+++ b/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
@@ -948,6 +948,11 @@ void tst_QRawFont::rawFontFromInvalidData()
font.loadFromData(invalidData, 10, QFont::PreferDefaultHinting);
QVERIFY(!font.isValid());
+
+ invalidData.fill(255, 1024);
+ font.loadFromData(invalidData, 10, QFont::PreferDefaultHinting);
+
+ QVERIFY(!font.isValid());
}
#endif // QT_NO_RAWFONT