summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/linguist/lconvert/data/whitespace.ts12
-rw-r--r--tests/auto/linguist/lconvert/tst_lconvert.cpp1
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/linguist/lconvert/data/whitespace.ts b/tests/auto/linguist/lconvert/data/whitespace.ts
new file mode 100644
index 000000000..560fe5d03
--- /dev/null
+++ b/tests/auto/linguist/lconvert/data/whitespace.ts
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1">
+<context>
+ <name>QObject</name>
+ <message>
+ <source>This is a test</source>
+ <translation>SPACE AA AA,
+NBSP AA&#xa0;AA</translation>
+ </message>
+</context>
+</TS>
diff --git a/tests/auto/linguist/lconvert/tst_lconvert.cpp b/tests/auto/linguist/lconvert/tst_lconvert.cpp
index 2ff8ea508..7f3c60f51 100644
--- a/tests/auto/linguist/lconvert/tst_lconvert.cpp
+++ b/tests/auto/linguist/lconvert/tst_lconvert.cpp
@@ -313,6 +313,7 @@ void tst_lconvert::roundtrips_data()
QTest::newRow("ts-xliff-ts (msgid)") << "msgid.ts" << tsXlfTs << noArgs;
QTest::newRow("ts-po-ts (endless loop)") << "endless-po-loop.ts" << tsPoTs << noArgs;
+ QTest::newRow("ts-qm-ts (whitespace)") << "whitespace.ts" << tsQmTs << noArgs;
}
void tst_lconvert::roundtrips()