tst_QImage::reinterpretAsFormat(): deduplicate a data tag
Two rows shared a data tag. Prefixed one of them with the color of the half-transparent image it involves (the other's is fully transparent). Change-Id: I1bd174008ed29bcf2f460e683fdf6d1f12ba19d0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>bb10
parent
e6fb0e0779
commit
d52abad85d
|
|
@ -3850,7 +3850,7 @@ void tst_QImage::reinterpretAsFormat_data()
|
|||
QTest::newRow("rgb32 -> argb32") << QImage::Format_RGB32 << QImage::Format_ARGB32 << QColor(Qt::cyan) << QColor(Qt::cyan);
|
||||
QTest::newRow("argb32pm -> rgb32") << QImage::Format_ARGB32_Premultiplied << QImage::Format_RGB32 << QColor(Qt::transparent) << QColor(Qt::black);
|
||||
QTest::newRow("argb32 -> rgb32") << QImage::Format_ARGB32 << QImage::Format_RGB32 << QColor(255, 0, 0, 127) << QColor(255, 0, 0);
|
||||
QTest::newRow("argb32pm -> rgb32") << QImage::Format_ARGB32_Premultiplied << QImage::Format_RGB32 << QColor(255, 0, 0, 127) << QColor(127, 0, 0);
|
||||
QTest::newRow("argb32pm (red) -> rgb32") << QImage::Format_ARGB32_Premultiplied << QImage::Format_RGB32 << QColor(255, 0, 0, 127) << QColor(127, 0, 0);
|
||||
}
|
||||
|
||||
void tst_QImage::reinterpretAsFormat()
|
||||
|
|
|
|||
Loading…
Reference in New Issue