diff options
author | Fabian Kosmale <[email protected]> | 2025-06-04 13:41:58 +0200 |
---|---|---|
committer | Fabian Kosmale <[email protected]> | 2025-06-05 20:58:21 +0200 |
commit | 0c705ac038060fec72e7804d90f780d134f790f2 (patch) | |
tree | 012e28aa2cca7b694c7acd505b1ef2037d0fe945 /tests | |
parent | 5ee06587fa9bf8f9eaef402851e34438c64ff94e (diff) |
QColor::fromString does not care about the casing of named colors, and
conseqently neither does the QML engine. Unconditionally lower case the
color in the check to accomadate it.
Pick-to: 6.10
Change-Id: I35aa4162bcd8682bbea86776c9929e00f891cdb9
Reviewed-by: Sami Shalayel <[email protected]>
Reviewed-by: Olivier De Cannière <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index d72a5ab338..8039b96864 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -1523,7 +1523,7 @@ void TestQmllint::cleanQmlSnippet_data() QTest::newRow("color-hex2") << u"property color myColor: \"#FFFFFFFF\""_s << defaultOptions; QTest::newRow("color-hex3") << u"property color myColor: \"#A0AAff1f\""_s << defaultOptions; QTest::newRow("color-name") << u"property color myColor: \"blue\""_s << defaultOptions; - QTest::newRow("color-name2") << u"property color myColor\nmyColor: \"green\""_s + QTest::newRow("color-name2") << u"property color myColor\nmyColor: \"grEen\""_s << defaultOptions; { CallQmllintOptions options; |