diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-03-29 08:36:06 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2017-03-29 15:31:04 +0000 |
commit | b82d5bb4186952d66ebd4a3f6a21c5d9e8705940 (patch) | |
tree | 18dbb8814f9cd63447561b7b64ebfa67b65d42e7 /tests | |
parent | 1b8c7e72e4467925ecee49d2d66e81692ca9d525 (diff) |
tst_qquickimage::mirror(): Ensure screenshots are in the correct format
Task-number: QTBUG-59787
Change-Id: I9ef1e6e5284cadc37bdac342b02cf93655346d57
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/qquickimage/tst_qquickimage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp index 4699f947a1..e439db543f 100644 --- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp +++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp @@ -373,7 +373,7 @@ void tst_qquickimage::mirror() } QImage img = expected.toImage(); - QCOMPARE(screenshots[fillMode], img); + QCOMPARE(screenshots[fillMode].convertToFormat(img.format()), img); } } |