aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlincubator/data/setInitialState.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlincubator/data/setInitialState.qml')
-rw-r--r--tests/auto/qml/qqmlincubator/data/setInitialState.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlincubator/data/setInitialState.qml b/tests/auto/qml/qqmlincubator/data/setInitialState.qml
new file mode 100644
index 0000000000..0fd61abfd2
--- /dev/null
+++ b/tests/auto/qml/qqmlincubator/data/setInitialState.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.0
+
+QtObject {
+ property int test1: (testData1 * 32 + 99) / testData2
+ property int test2: myValueFunction()
+
+ property bool myValueFunctionCalled: false
+
+ property int testData1: 19
+ property int testData2: 13
+
+ function myValueFunction() {
+ myValueFunctionCalled = true;
+ return 13;
+ }
+}
+