summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine/translatable-unicode.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptengine/translatable-unicode.js')
-rw-r--r--tests/auto/qscriptengine/translatable-unicode.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qscriptengine/translatable-unicode.js b/tests/auto/qscriptengine/translatable-unicode.js
new file mode 100644
index 0000000..afe2aff
--- /dev/null
+++ b/tests/auto/qscriptengine/translatable-unicode.js
@@ -0,0 +1,9 @@
+qsTr("H\u2082O");
+qsTranslate("\u010C\u0101\u011F\u0115", "CO\u2082");
+
+var unicode_strings = [
+ QT_TR_NOOP("\u0391\u0392\u0393"),
+ QT_TRANSLATE_NOOP("\u010C\u0101\u011F\u0115", "\u0414\u0415\u0416")
+];
+
+qsTr("H\u2082O", "not the same H\u2082O");