aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data')
-rw-r--r--tests/auto/qml/qqmlproperty/data/NoContextTypeA.qml5
-rw-r--r--tests/auto/qml/qqmlproperty/data/NoContextTypeB.qml5
-rw-r--r--tests/auto/qml/qqmlproperty/data/TestType.qml6
-rw-r--r--tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml19
-rw-r--r--tests/auto/qml/qqmlproperty/data/assignEmptyVariantMap.qml5
-rw-r--r--tests/auto/qml/qqmlproperty/data/readSynthesizedObject.qml9
6 files changed, 49 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/NoContextTypeA.qml b/tests/auto/qml/qqmlproperty/data/NoContextTypeA.qml
new file mode 100644
index 0000000000..f58967cbb2
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/NoContextTypeA.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.0
+
+QtObject {
+ property string someString
+}
diff --git a/tests/auto/qml/qqmlproperty/data/NoContextTypeB.qml b/tests/auto/qml/qqmlproperty/data/NoContextTypeB.qml
new file mode 100644
index 0000000000..4b3672873d
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/NoContextTypeB.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.0
+
+QtObject {
+ property NoContextTypeA myTypeA
+}
diff --git a/tests/auto/qml/qqmlproperty/data/TestType.qml b/tests/auto/qml/qqmlproperty/data/TestType.qml
new file mode 100644
index 0000000000..1fe150548a
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/TestType.qml
@@ -0,0 +1,6 @@
+import QtQuick 2.0
+
+QtObject {
+ property int a: 10
+}
+
diff --git a/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml b/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml
new file mode 100644
index 0000000000..f101f38a2d
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/aliasPropertyBindings.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+
+ property real test: 9
+ property real test2: 3
+
+ property real realProperty: test * test + test
+ property alias aliasProperty: root.realProperty
+
+ states: State {
+ name: "switch"
+ PropertyChanges {
+ target: root
+ aliasProperty: 32 * test2
+ }
+ }
+}
diff --git a/tests/auto/qml/qqmlproperty/data/assignEmptyVariantMap.qml b/tests/auto/qml/qqmlproperty/data/assignEmptyVariantMap.qml
new file mode 100644
index 0000000000..a9e51c1255
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/assignEmptyVariantMap.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.0
+
+Item {
+ Component.onCompleted: { o.variantMap = {}; }
+}
diff --git a/tests/auto/qml/qqmlproperty/data/readSynthesizedObject.qml b/tests/auto/qml/qqmlproperty/data/readSynthesizedObject.qml
new file mode 100644
index 0000000000..55010b69a9
--- /dev/null
+++ b/tests/auto/qml/qqmlproperty/data/readSynthesizedObject.qml
@@ -0,0 +1,9 @@
+import QtQuick 2.0
+
+QtObject {
+ property TestType test
+
+ test: TestType {
+ property int b: 19
+ }
+}