summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/extras/data/tst_circulartickmarklabel.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/extras/data/tst_circulartickmarklabel.qml b/tests/auto/extras/data/tst_circulartickmarklabel.qml
index 2d1841e0..60d7ff9e 100644
--- a/tests/auto/extras/data/tst_circulartickmarklabel.qml
+++ b/tests/auto/extras/data/tst_circulartickmarklabel.qml
@@ -314,6 +314,15 @@ TestCase {
compare(label.__panel.tickmarkValueFromMinorIndex(((label.tickmarkCount - 1) * label.minorTickmarkCount) - 1), 98);
}
+ function test_labelText() {
+ for (var i = 0; i < label.labelCount; ++i) {
+ var labelDelegateLoader = findChild(label, "labelDelegateLoader" + i);
+ verify(labelDelegateLoader);
+ compare(labelDelegateLoader.styleData.index, i);
+ compare(labelDelegateLoader.styleData.value, i * label.labelStepSize);
+ }
+ }
+
function test_invalidValues() {
// Shouldn't produce warnings.
label.labelStepSize = 0;