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_category.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_category.qml')
-rw-r--r-- | tests/auto/qmltest/axis3d/tst_category.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qmltest/axis3d/tst_category.qml b/tests/auto/qmltest/axis3d/tst_category.qml index 7f0be845..318fa011 100644 --- a/tests/auto/qmltest/axis3d/tst_category.qml +++ b/tests/auto/qmltest/axis3d/tst_category.qml @@ -46,6 +46,10 @@ Item { id: change } + CategoryAxis3D { + id: invalid + } + TestCase { name: "CategoryAxis3D Initial" @@ -113,4 +117,19 @@ Item { compare(change.titleVisible, true) } } + + TestCase { + name: "CategoryAxis3D Invalid" + + function test_invalid() { + invalid.labelAutoRotation = -10 + compare(invalid.labelAutoRotation, 0.0) + invalid.labelAutoRotation = 100 + compare(invalid.labelAutoRotation, 90.0) + invalid.max = -10 + compare(invalid.min, 0) + invalid.min = 10 + compare(invalid.max, 11) + } + } } |