diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-10-17 08:50:12 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-10-17 09:06:43 +0300 |
commit | b25f6926ded030959d1931ec0a834b1a9e5f27e3 (patch) | |
tree | 8b602b289e3e331c4d9e759dfab125879c318f05 /tests/auto/qmltest/axis3d/tst_value.qml | |
parent | 425ece960c378f8486d0c5e544cc7d0b95c9f728 (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/axis3d/tst_value.qml')
-rw-r--r-- | tests/auto/qmltest/axis3d/tst_value.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/qmltest/axis3d/tst_value.qml b/tests/auto/qmltest/axis3d/tst_value.qml index 6a8f7849..54189c8b 100644 --- a/tests/auto/qmltest/axis3d/tst_value.qml +++ b/tests/auto/qmltest/axis3d/tst_value.qml @@ -50,6 +50,10 @@ Item { id: change } + ValueAxis3D { + id: invalid + } + TestCase { name: "ValueAxis3D Initial" @@ -127,4 +131,24 @@ Item { compare(change.titleVisible, true) } } + + TestCase { + name: "ValueAxis3D Invalid" + + function test_invalid() { + invalid.segmentCount = -1 + compare(invalid.segmentCount, 1) + invalid.subSegmentCount = -1 + compare(invalid.subSegmentCount, 1) + + invalid.labelAutoRotation = -10 + compare(invalid.labelAutoRotation, 0.0) + invalid.labelAutoRotation = 100 + compare(invalid.labelAutoRotation, 90.0) + invalid.max = -10 + compare(invalid.min, -11) + invalid.min = 10 + compare(invalid.max, 11) + } + } } |