aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml b/tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml
index 8d08cc5559..8847055a70 100644
--- a/tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml
+++ b/tests/auto/qml/qqmlecmascript/data/sequenceConversion.array.qml
@@ -141,6 +141,15 @@ Item {
expected = 7;
if (poppedVal != expected) success = false;
+ // push
+ msco.stringListProperty = [ "one", "two" ]
+ msco.stringListProperty.push("three")
+ expected = [ "one", "two", "three" ]
+ if (msco.stringListProperty.toString() != expected.toString()) success = false;
+ msco.stringListProperty.push("four", "five")
+ expected = [ "one", "two", "three", "four", "five" ]
+ if (msco.stringListProperty.toString() != expected.toString()) success = false;
+
// concat
msco.stringListProperty = [ "one", "two" ]
stringList = [ "hello", "world" ]