aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qquickworkerscript/data/externalObjectWorker.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qquickworkerscript/data/externalObjectWorker.qml')
-rw-r--r--tests/auto/qml/qquickworkerscript/data/externalObjectWorker.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qquickworkerscript/data/externalObjectWorker.qml b/tests/auto/qml/qquickworkerscript/data/externalObjectWorker.qml
new file mode 100644
index 0000000000..1dae608b50
--- /dev/null
+++ b/tests/auto/qml/qquickworkerscript/data/externalObjectWorker.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+
+ function testExternalObject() {
+ worker.sendMessage(Qt.vector3d(1,2,3));
+ }
+
+ WorkerScript {
+ id: worker
+ source: "script.js"
+ }
+}