summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/surface3d/tst_heightproxy.qml
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-10-17 08:50:12 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-10-17 09:06:43 +0300
commitb25f6926ded030959d1931ec0a834b1a9e5f27e3 (patch)
tree8b602b289e3e331c4d9e759dfab125879c318f05 /tests/auto/qmltest/surface3d/tst_heightproxy.qml
parent425ece960c378f8486d0c5e544cc7d0b95c9f728 (diff)
Added invalid value tests for QML autotests
Plus fixed a QML documentation bug, and added a missing inheritance to docs. Task-number: QTRD-3383 Change-Id: I1f7c56c49b829fee2cfd0731bbcc7e248a06a0c0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
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)
+ }
+ }
}