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_logvalue.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_logvalue.qml')
-rw-r--r-- | tests/auto/qmltest/axis3d/tst_logvalue.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qmltest/axis3d/tst_logvalue.qml b/tests/auto/qmltest/axis3d/tst_logvalue.qml index fad93611..89228ad1 100644 --- a/tests/auto/qmltest/axis3d/tst_logvalue.qml +++ b/tests/auto/qmltest/axis3d/tst_logvalue.qml @@ -40,6 +40,10 @@ Item { id: change } + LogValueAxis3DFormatter { + id: invalid + } + TestCase { name: "LogValueAxis3DFormatter Initial" @@ -73,4 +77,15 @@ Item { compare(change.showEdgeLabels, false) } } + + TestCase { + name: "LogValueAxis3DFormatter Invalid" + + function test_invalid() { + invalid.base = 1 + compare(invalid.base, 10) + invalid.base = -1 + compare(invalid.base, 10) + } + } } |