diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/jsArrayMethodsUntyped.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/jsArrayMethodsUntyped.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/jsArrayMethodsUntyped.qml b/tests/auto/qml/qmlcppcodegen/data/jsArrayMethodsUntyped.qml new file mode 100644 index 0000000000..7426c692fe --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/jsArrayMethodsUntyped.qml @@ -0,0 +1,17 @@ +import QML + +QtObject { + id: self + + property QtObject l1 + property QtObject l2 + property QtObject l3 + + function jsArray() { return [l1, l2, l3, l1, l2, l3] } + + property string jsArrayToString: jsArray().toString() + property bool jsArrayIncludes: jsArray().includes(l3) + property string jsArrayJoin: jsArray().join() + property int jsArrayIndexOf: jsArray().indexOf(l2) + property int jsArrayLastIndexOf: jsArray().lastIndexOf(l3) +} |