aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlformat')
-rw-r--r--tests/auto/qml/qmlformat/data/nestedIf.formatted.qml7
-rw-r--r--tests/auto/qml/qmlformat/data/nestedIf.qml10
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlformat/data/nestedIf.formatted.qml b/tests/auto/qml/qmlformat/data/nestedIf.formatted.qml
index 6c17f18a9c..11acf5b568 100644
--- a/tests/auto/qml/qmlformat/data/nestedIf.formatted.qml
+++ b/tests/auto/qml/qmlformat/data/nestedIf.formatted.qml
@@ -25,5 +25,12 @@ Item {
x();
}
}
+ if (x && y)
+ if (x < y)
+ return 0;
+ else
+ return -1;
+ else
+ return y;
}
}
diff --git a/tests/auto/qml/qmlformat/data/nestedIf.qml b/tests/auto/qml/qmlformat/data/nestedIf.qml
index 9388dd42f6..fb65e409b4 100644
--- a/tests/auto/qml/qmlformat/data/nestedIf.qml
+++ b/tests/auto/qml/qmlformat/data/nestedIf.qml
@@ -26,5 +26,13 @@ Component.onCompleted: {
x();
}
}
+
+ if (x && y)
+ if (x < y)
+ return 0;
+ else
+ return -1;
+ else
+ return y;
+}
}
-} \ No newline at end of file