@@ -167,6 +167,7 @@ Rectangle {
167 when: windowShown
167 when: windowShown
169 property Item header: findChild(card, "cardHeader")
169 property Item header: findChild(card, "cardHeader")
170+ property Item title: findChild(header, "titleLabel")
170 property Item art: findChild(card, "artShape")
171 property Item art: findChild(card, "artShape")
171 property Item artImage: findChild(card, "artImage")
172 property Item artImage: findChild(card, "artImage")
172 property Item summary: findChild(card, "summaryLabel")
173 property Item summary: findChild(card, "summaryLabel")
@@ -354,5 +355,18 @@ Rectangle {
354 compare(testCase.art.height, 0);
355 compare(testCase.art.height, 0);
355 compare(testCase.art.width, 0);
356 compare(testCase.art.width, 0);
359+ function test_font_weights_data() {
361+ { tag: "Title only", index: 8, weight: Font.Normal },
362+ { tag: "Title, subtitle", index: 0, weight: Font.DemiBold },
366+ function test_font_weights(data) {
367+ selector.selectedIndex = data.index;
369+ tryCompare(testCase.title.font, "weight", data.weight);