aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcachegen/data/library.js
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-03-21 16:25:55 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-03-21 16:29:29 +0000
commit497a795081b95d487f0ec33746cc2a12ffeae5a0 (patch)
tree15b297948133b9de60c7a8b77fe612b8fe4398c3 /tests/auto/qml/qmlcachegen/data/library.js
parent9ce826901bffd3b63d23a61babdc667c3f8ec567 (diff)
Initialize TranslationData padding before writing cache files
Otherwise the resulting files differ subtly. Fixes: QTBUG-74532 Change-Id: I12b4f1ba6dda781d63ad50cce87861ba24582bf7 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcachegen/data/library.js')
-rw-r--r--tests/auto/qml/qmlcachegen/data/library.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcachegen/data/library.js b/tests/auto/qml/qmlcachegen/data/library.js
new file mode 100644
index 0000000000..51fb41dc23
--- /dev/null
+++ b/tests/auto/qml/qmlcachegen/data/library.js
@@ -0,0 +1,4 @@
+
+function getter() {
+ return 42;
+}