summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-10 13:05:02 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-23 17:01:29 +0200
commit7c1f94f387ade061eae46e549e1f04a70234b68e (patch)
treef61697bf47e7bc34b9c3cc394b77721be7a6b805 /tests/auto/gui/text
parentdf4cbaf8dc59a5c62ad82a56de8e3596bfecebcd (diff)
Fix Qt6 todo in qcssparser
Colors with wrong number of elements are now invalid. Change-Id: I32c934894de86095d9790baa5f0d2001d76bcd3c Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/gui/text')
-rw-r--r--tests/auto/gui/text/qcssparser/tst_qcssparser.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/gui/text/qcssparser/tst_qcssparser.cpp b/tests/auto/gui/text/qcssparser/tst_qcssparser.cpp
index 0c7e53b4fa..937e7c2acd 100644
--- a/tests/auto/gui/text/qcssparser/tst_qcssparser.cpp
+++ b/tests/auto/gui/text/qcssparser/tst_qcssparser.cpp
@@ -860,9 +860,8 @@ void tst_QCssParser::colorValue_data()
QTest::newRow("role2") << "color: palette( window-text ) " << qApp->palette().color(QPalette::WindowText);
QTest::newRow("transparent") << "color: transparent" << QColor(Qt::transparent);
- // ### Qt6: no longer valid
- QTest::newRow("rgb-invalid") << "color: rgb(10, 20, 30, 40)" << QColor(10, 20, 30, 40);
- QTest::newRow("rgba-invalid") << "color: rgba(10, 20, 30)" << QColor(10, 20, 30, 255);
+ QTest::newRow("rgb-invalid") << "color: rgb(10, 20, 30, 40)" << QColor();
+ QTest::newRow("rgba-invalid") << "color: rgba(10, 20, 30)" << QColor();
}
void tst_QCssParser::colorValue()