diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-10-16 07:48:49 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-10-16 09:43:43 +0300 |
commit | e12a902adc6443a55c6207410599af7ed966f122 (patch) | |
tree | d3fdeb8f1bb8b8d37e69f15445f6f0afde692e02 /tests/auto/qmltest/axis3d/tst_logvalue.qml | |
parent | bafaf813356e308311bd1174b71e3c16c9fa0049 (diff) |
Added tests for QML axes
Task-number: QTRD-3368
Change-Id: Ie7be01bdbd0f63eccde39af86d1423d0af5df1b3
Change-Id: Ie7be01bdbd0f63eccde39af86d1423d0af5df1b3
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 | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/tests/auto/qmltest/axis3d/tst_logvalue.qml b/tests/auto/qmltest/axis3d/tst_logvalue.qml index 7c6dc83c..fad93611 100644 --- a/tests/auto/qmltest/axis3d/tst_logvalue.qml +++ b/tests/auto/qmltest/axis3d/tst_logvalue.qml @@ -25,5 +25,52 @@ Item { height: 150 width: 150 - // TODO: Add tests for LogValueAxis3DFormatter + LogValueAxis3DFormatter { + id: initial + } + + LogValueAxis3DFormatter { + id: initialized + autoSubGrid: false + base: 0.1 + showEdgeLabels: false + } + + LogValueAxis3DFormatter { + id: change + } + + TestCase { + name: "LogValueAxis3DFormatter Initial" + + function test_initial() { + compare(initial.autoSubGrid, true) + compare(initial.base, 10) + compare(initial.showEdgeLabels, true) + } + } + + TestCase { + name: "LogValueAxis3DFormatter Initialized" + + function test_initialized() { + compare(initialized.autoSubGrid, false) + compare(initialized.base, 0.1) + compare(initialized.showEdgeLabels, false) + } + } + + TestCase { + name: "LogValueAxis3DFormatter Change" + + function test_change() { + change.autoSubGrid = false + change.base = 0.1 + change.showEdgeLabels = false + + compare(change.autoSubGrid, false) + compare(change.base, 0.1) + compare(change.showEdgeLabels, false) + } + } } |