From b25f6926ded030959d1931ec0a834b1a9e5f27e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Fri, 17 Oct 2014 08:50:12 +0300 Subject: 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 --- tests/auto/qmltest/axis3d/tst_logvalue.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/auto/qmltest/axis3d/tst_logvalue.qml') 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) + } + } } -- cgit v1.2.3