summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-12 20:08:56 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-12 20:08:56 +0200
commit94c576cf6607d3e9880fdaf6c8a51216bf2d2147 (patch)
tree32e42bdb8bcb869c894023f9494c2e2df310d585 /tests/auto/gui
parent2ad7f6ddf5042d7442c97a89b083ca2853cf5721 (diff)
parente893e657e5c976f96e7e627ca90531934129bf4b (diff)
Merge remote-tracking branch 'origin/5.8' into 5.9
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/qopengl/tst_qopengl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp
index 87d93e0827..6d9456fa69 100644
--- a/tests/auto/gui/qopengl/tst_qopengl.cpp
+++ b/tests/auto/gui/qopengl/tst_qopengl.cpp
@@ -389,6 +389,7 @@ static bool fuzzyComparePixels(const QRgb testPixel, const QRgb refPixel, const
static void fuzzyCompareImages(const QImage &testImage, const QImage &referenceImage, const char* file, int line)
{
+ QCOMPARE(testImage.devicePixelRatio(), referenceImage.devicePixelRatio());
QCOMPARE(testImage.width(), referenceImage.width());
QCOMPARE(testImage.height(), referenceImage.height());