summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/surface3d/tst_heightproxy.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmltest/surface3d/tst_heightproxy.qml')
-rw-r--r--tests/auto/qmltest/surface3d/tst_heightproxy.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qmltest/surface3d/tst_heightproxy.qml b/tests/auto/qmltest/surface3d/tst_heightproxy.qml
index dc6938f8..29772451 100644
--- a/tests/auto/qmltest/surface3d/tst_heightproxy.qml
+++ b/tests/auto/qmltest/surface3d/tst_heightproxy.qml
@@ -42,6 +42,10 @@ Item {
id: change
}
+ HeightMapSurfaceDataProxy {
+ id: invalid
+ }
+
TestCase {
name: "HeightMapSurfaceDataProxy Initial"
@@ -98,4 +102,15 @@ Item {
compare(change.rowCount, 24)
}
}
+
+ TestCase {
+ name: "HeightMapSurfaceDataProxy Invalid"
+
+ function test_invalid() {
+ invalid.maxXValue = -10
+ compare(invalid.minXValue, -11)
+ invalid.minZValue = 20
+ compare(invalid.maxZValue, 21)
+ }
+ }
}