aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmltest')
-rw-r--r--tests/auto/qmltest/image/car.ktxbin0 -> 11908 bytes
-rw-r--r--tests/auto/qmltest/image/tst_image.qml10
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qmltest/image/car.ktx b/tests/auto/qmltest/image/car.ktx
new file mode 100644
index 0000000000..2aefdd306b
--- /dev/null
+++ b/tests/auto/qmltest/image/car.ktx
Binary files differ
diff --git a/tests/auto/qmltest/image/tst_image.qml b/tests/auto/qmltest/image/tst_image.qml
index 6385db7fbb..346bee6969 100644
--- a/tests/auto/qmltest/image/tst_image.qml
+++ b/tests/auto/qmltest/image/tst_image.qml
@@ -127,6 +127,11 @@ Item {
source: "logo.pkm"
}
+ Image {
+ id: ktxImage
+ source: "car.ktx"
+ }
+
TestCase {
name: "Image"
@@ -231,5 +236,10 @@ Item {
compare(pkmImage.width, 256)
compare(pkmImage.height, 256)
}
+
+ function test_ktxImage() {
+ compare(ktxImage.width, 146)
+ compare(ktxImage.height, 80)
+ }
}
}