aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml b/tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml
index c00a94c529..f58149bd62 100644
--- a/tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml
+++ b/tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml
@@ -9,9 +9,8 @@ QtObject {
Component.onCompleted: {
var s0 = Data.value === 37 && Namespace.Data.value === 37 && Data.value === Namespace.Data.value;
- var s1 = NamespaceAndType.value === NamespaceAndType.NamespaceAndType.value &&
- NamespaceAndType.value === 37 &&
- NamespaceAndType.NamespaceAndType.value === 37;
- success = (s0 === true) && (s1 === true);
+ var s1 = NamespaceAndType.NamespaceAndType.value === 37; // qualifier should shadow typename.
+ var s2 = NamespaceAndType.value === undefined; // should resolve to the qualifier, not the singleton type.
+ success = (s0 === true) && (s1 === true) && (s2 === true);
}
}