Add wasm exception for tst_qchar

Since wasm doesn't like filesystems that well, we omit this test in
tst_qchar for wasm, this allows us to still run the test without the
case where it needs to read the normalization file.

Change-Id: I37e54d97e119f94e1a9ca53917d0b93183321899
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
David Skoland 2022-06-09 12:05:24 +02:00
parent d625876219
commit 281d915ba4

View File

@ -42,8 +42,10 @@ private slots:
void mirroredChar(); void mirroredChar();
void decomposition(); void decomposition();
void script(); void script();
#if !defined(Q_OS_WASM)
void normalization_data(); void normalization_data();
void normalization(); void normalization();
#endif // !defined(Q_OS_WASM)
void normalization_manual(); void normalization_manual();
void normalizationCorrections(); void normalizationCorrections();
void unicodeVersion(); void unicodeVersion();
@ -759,6 +761,8 @@ void tst_QChar::script()
QVERIFY(QChar::script(0xe0100) == QChar::Script_Inherited); QVERIFY(QChar::script(0xe0100) == QChar::Script_Inherited);
} }
// wasm is limited in reading filesystems, so omit this test for now
#if !defined(Q_OS_WASM)
void tst_QChar::normalization_data() void tst_QChar::normalization_data()
{ {
QTest::addColumn<QStringList>("columns"); QTest::addColumn<QStringList>("columns");
@ -881,6 +885,7 @@ void tst_QChar::normalization()
// ################# // #################
} }
#endif // !defined(Q_OS_WASM)
void tst_QChar::normalization_manual() void tst_QChar::normalization_manual()
{ {