aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/jsmodule/test.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/data/jsmodule/test.qml')
-rw-r--r--tests/auto/qml/qqmlcomponent/data/jsmodule/test.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcomponent/data/jsmodule/test.qml b/tests/auto/qml/qqmlcomponent/data/jsmodule/test.qml
new file mode 100644
index 0000000000..123c857180
--- /dev/null
+++ b/tests/auto/qml/qqmlcomponent/data/jsmodule/test.qml
@@ -0,0 +1,10 @@
+import "./module.mjs" as MJ
+import QtQml 2.15
+
+QtObject {
+ id: root
+ property bool ok: false
+ Component.onCompleted: {
+ root.ok = MJ.withProp(root) == 42
+ }
+}