aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltranslation/data/translation.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmltranslation/data/translation.js')
-rw-r--r--tests/auto/qml/qqmltranslation/data/translation.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmltranslation/data/translation.js b/tests/auto/qml/qqmltranslation/data/translation.js
index 11117fd36e..5269926604 100644
--- a/tests/auto/qml/qqmltranslation/data/translation.js
+++ b/tests/auto/qml/qqmltranslation/data/translation.js
@@ -1,5 +1,5 @@
// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
function basic() {
return qsTr("hello")
@@ -58,3 +58,7 @@ function plural2() {
return qsTr("%n duck(s)", "", 2)
return "";
}
+
+function emptyContext() {
+ return qsTranslate("", "hello")
+}