aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/listIndices.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/listIndices.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/listIndices.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/listIndices.qml b/tests/auto/qml/qmlcppcodegen/data/listIndices.qml
index b5fda4ef0d..9df172b2e6 100644
--- a/tests/auto/qml/qmlcppcodegen/data/listIndices.qml
+++ b/tests/auto/qml/qmlcppcodegen/data/listIndices.qml
@@ -5,10 +5,18 @@ QtObject {
id: self
property list<QtObject> items
property int numItems: items.length
+ property QtObject fractional: items[2.25]
+ property QtObject negativeZero: items[-1 * 0]
+ property QtObject infinity: items[1 / 0]
+ property QtObject nan: items[1 - "a"]
Component.onCompleted: {
items.length = 3
for (var i = 0; i < 3; ++i)
items[i] = self
+
+ items[2.25] = null
+ items[1 / 0] = self
+ items[1 - "a"] = self
}
}