12.1: feathered selections, Select Subject, Soft Light, the fixed-width font menu (Compositor 1.1.1–1.1.4)
This commit is contained in:
1 parent
3e52fd90ee
commit
ee34c338d4
42 files changed
+1087
-94
No files matched your search
@@ -63,6 +63,7 @@ private slots:
|
||||
void everyPatternFillsBackToItself_data();
|
||||
void everyPatternFillsBackToItself();
|
||||
void darkMeansBelowHalfGray();
|
||||
void whiteMeansAtLeastHalfGray();
|
||||
void opaqueMeansAtLeastHalfAlpha();
|
||||
void nothingToTraceIsNil();
|
||||
void otherPixelFormatsAreConverted();
|
||||
@@ -129,6 +130,12 @@ void MaskTracingTests::darkMeansBelowHalfGray()
|
||||
QVERIFY(!MaskTracing::darkPixels(mask({"#.", ".."}, 128, 255)).has_value());
|
||||
}
|
||||
|
||||
void MaskTracingTests::whiteMeansAtLeastHalfGray()
|
||||
{
|
||||
QCOMPARE(filled(MaskTracing::whitePixels(mask({"#.", ".."}, 128, 127)).value(), 2, 2), QStringList({"#.", ".."}));
|
||||
QVERIFY(!MaskTracing::whitePixels(mask({"#.", ".."}, 127, 0)).has_value());
|
||||
}
|
||||
|
||||
void MaskTracingTests::opaqueMeansAtLeastHalfAlpha()
|
||||
{
|
||||
QCOMPARE(filled(MaskTracing::opaquePixels(layer({"#.", ".."}, 128, 127)).value(), 2, 2), QStringList({"#.", ".."}));
|
||||
|
||||
Reference in new issue
Block a user