diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2021-03-09 16:13:38 +0300 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2021-03-11 15:44:28 +0300 |
commit | 35a0c2552f17e40d3584af422a3c5fe75c700d0f (patch) | |
tree | f111422af137d6bab81d076f3b203f5923d7183d /src/qmltest | |
parent | b3567c177f231f28e8bee32d54263b24148c722b (diff) |
TestCase: Fix colors comparison in fuzzyCompare()
fuzzyCompare() messed up the arguments and compared the first color
argument with itself (ignoring the second color).
Fixes: QTBUG-91694
Pick-to: 5.15 6.0 6.1
Change-Id: I86453c937e27a2112f8375b144ca21a9d088f017
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmltest')
-rw-r--r-- | src/qmltest/quicktestresult.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmltest/quicktestresult.cpp b/src/qmltest/quicktestresult.cpp index 71091174bd..30fa14aa6d 100644 --- a/src/qmltest/quicktestresult.cpp +++ b/src/qmltest/quicktestresult.cpp @@ -516,7 +516,7 @@ bool QuickTestResult::fuzzyCompare(const QVariant &actual, const QVariant &expec return false; act = var.value<QColor>(); - QQml_colorProvider()->colorFromString(expected.toString(), &ok); + var = QQml_colorProvider()->colorFromString(expected.toString(), &ok); if (!ok) return false; exp = var.value<QColor>(); |