aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcachegen/data/worker.qml
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/worker.qml
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/worker.qml')
-rw-r--r--tests/auto/qml/qmlcachegen/data/worker.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcachegen/data/worker.qml b/tests/auto/qml/qmlcachegen/data/worker.qml
new file mode 100644
index 0000000000..1f1c9d1ac7
--- /dev/null
+++ b/tests/auto/qml/qmlcachegen/data/worker.qml
@@ -0,0 +1,12 @@
+import QtQml 2.0
+import QtQuick 2.0
+QtObject {
+ property bool success: false
+ property WorkerScript worker: WorkerScript {
+ source: "worker.js"
+ onMessage: {
+ success = true
+ }
+ }
+ Component.onCompleted: worker.sendMessage("Hello")
+}