diff options
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/data/jsmodule/module.mjs')
-rw-r--r-- | tests/auto/qml/qqmlcomponent/data/jsmodule/module.mjs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcomponent/data/jsmodule/module.mjs b/tests/auto/qml/qqmlcomponent/data/jsmodule/module.mjs new file mode 100644 index 0000000000..3dd3507d45 --- /dev/null +++ b/tests/auto/qml/qqmlcomponent/data/jsmodule/module.mjs @@ -0,0 +1,6 @@ +export function withProp(root) { + const component = Qt.createComponent("data/jsmodule/Dynamic.qml"); + const el = component.createObject(root, { value: 42 }); + return el.value; +} + |