aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllanguage')
-rw-r--r--tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml4
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml b/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml
index c6788f787a..e0072fe159 100644
--- a/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml
+++ b/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml
@@ -12,7 +12,8 @@ QtObject {
OtherEnumValue2,
OtherEnumValue3 = 24,
OtherEnumValue4,
- OtherEnumValue5 = 1
+ OtherEnumValue5 = 1,
+ OtherEnumValue6 = -42
}
property int enumValue: TypeWithEnum.EnumValue2
@@ -25,4 +26,5 @@ QtObject {
property int otherEnumValue3: TypeWithEnum.OtherEnumValue3
property int otherEnumValue4: TypeWithEnum.OtherEnumValue4
property int otherEnumValue5: TypeWithEnum.OtherEnumValue5
+ property int otherEnumValue6: TypeWithEnum.OtherEnumValue6
}
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 2d6047a26b..ebc677c74f 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -4310,6 +4310,7 @@ void tst_qqmllanguage::qmlEnums()
QCOMPARE(o->property("otherEnumValue3").toInt(), 24);
QCOMPARE(o->property("otherEnumValue4").toInt(), 25);
QCOMPARE(o->property("otherEnumValue5").toInt(), 1);
+ QCOMPARE(o->property("otherEnumValue6").toInt(), -42);
}
{