diff options
author | John Tapsell <john.tapsell.ext@basyskom.com> | 2012-02-21 09:30:38 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-24 20:39:10 (GMT) |
commit | a0e68b2eecbe7d5aa020cfbc31ba94b949d4bb01 (patch) | |
tree | 08be6d796fe49fdbd3c3ebd69c9911631e108957 /tests | |
parent | b6e0eb18c98693c73442d7013bd4e1ed245643d9 (diff) | |
download | Qt-a0e68b2eecbe7d5aa020cfbc31ba94b949d4bb01.zip Qt-a0e68b2eecbe7d5aa020cfbc31ba94b949d4bb01.tar.gz Qt-a0e68b2eecbe7d5aa020cfbc31ba94b949d4bb01.tar.bz2 |
Fix tst-qtextscriptengine unit test when no appropriate font exists
The tst_QTextScriptEngine::controlInSyllable_qtbug14204 test fails if no
Devanagari font is found.
Change-Id: I35cf9d788569a92daa8b370480a44f7e748ddf86
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp b/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp index 3c20490..3fec5b6 100644 --- a/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp +++ b/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp @@ -1127,6 +1127,10 @@ void tst_QTextScriptEngine::greek() void tst_QTextScriptEngine::controlInSyllable_qtbug14204() { #if defined(Q_WS_X11) + if (QFontDatabase().families(QFontDatabase::Devanagari).isEmpty()) { + QSKIP("Devanagari font required", SkipAll); + return; + } QString s; s.append(QChar(0x0915)); s.append(QChar(0x094d)); |