summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-11-30 23:00:17 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-11-30 23:00:17 (GMT)
commit9d9152a4c0fd3752418662b0fcdd77b3906d9b5b (patch)
tree25788c724d28c853c8ba6d79291fb3ea8a5540ed /tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml
parent4d144f84300fb2613391fbe3de9fc9fdba5c6691 (diff)
parentbb1a6cd1e9d6d00e8d70f665ca223261e9eda06e (diff)
downloadQt-9d9152a4c0fd3752418662b0fcdd77b3906d9b5b.zip
Qt-9d9152a4c0fd3752418662b0fcdd77b3906d9b5b.tar.gz
Qt-9d9152a4c0fd3752418662b0fcdd77b3906d9b5b.tar.bz2
Merge branch '4.7-upstream' into 4.7-water
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml b/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml
new file mode 100644
index 0000000..4f07cbf
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/aliasBindingsOverrideTarget.2.qml
@@ -0,0 +1,29 @@
+import QtQuick 1.0
+
+Item {
+ id: me
+ property bool test: false
+
+ property int value: 9
+
+ AliasBindingsOverrideTargetType {
+ id: aliasType
+ pointAliasProperty.x: me.value
+ }
+
+ Component.onCompleted: {
+ if (aliasType.pointAliasProperty.x != 9) return;
+
+ me.value = 11;
+ if (aliasType.pointAliasProperty.x != 11) return;
+
+ aliasType.data = 8;
+ if (aliasType.pointAliasProperty.x != 11) return;
+
+ me.value = 4;
+ if (aliasType.pointAliasProperty.x != 4) return;
+
+ test = true;
+ }
+}
+