aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickimaginestyle/data/tst_imagine.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qquickimaginestyle/data/tst_imagine.qml')
-rw-r--r--tests/auto/qquickimaginestyle/data/tst_imagine.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qquickimaginestyle/data/tst_imagine.qml b/tests/auto/qquickimaginestyle/data/tst_imagine.qml
index 7a711dcd..72df8814 100644
--- a/tests/auto/qquickimaginestyle/data/tst_imagine.qml
+++ b/tests/auto/qquickimaginestyle/data/tst_imagine.qml
@@ -64,6 +64,11 @@ TestCase {
name: "Imagine"
Component {
+ id: buttonComponent
+ Button {}
+ }
+
+ Component {
id: implicitQrcButtonComponent
Button {
Imagine.path: ":/control-assets"
@@ -94,4 +99,10 @@ TestCase {
var image = grabImage(control)
compare(image.pixel(control.width / 2, control.height / 2), "#ff0000")
}
+
+ function test_fontFromConfigFile() {
+ var control = createTemporaryObject(buttonComponent, testCase)
+ verify(control)
+ compare(control.font.pixelSize, 80)
+ }
}