Add one more paint test

Add a test for the clip_box_top_left_glyph,
since we've seen broken rendering with it.
This commit is contained in:
Matthias Clasen 2023-01-10 22:07:44 -05:00
parent bf16dad55a
commit 6648e6e3e5
2 changed files with 31 additions and 0 deletions

30
test/api/results/test-154 Normal file
View File

@ -0,0 +1,30 @@
# random seed: R02S44305390d95bd0132defe151ebe3a9a6
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 500 500 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 2
start transform 1 0 0 1 0 0
radial gradient
p0 166 768 radius 0
p1 166 768 radius 256
colors
0 0 128 0 255
0.5 255 255 255 255
1 255 0 0 255
end transform
end clip
end transform
push group
start transform 1 0 -0 1 0 0
start clip glyph 159
start transform 1 0 0 1 0 0
solid 128 128 128 102
end transform
end clip
end transform
pop group mode 3
end transform
end clip

View File

@ -323,6 +323,7 @@ static paint_test_t paint_tests[] = {
{ TEST_GLYPHS, 0, 106, 0, "test-106" },
{ TEST_GLYPHS, 0, 116, 0, "test-116" }, // compositing
{ TEST_GLYPHS, 0, 123, 0, "test-123" },
{ TEST_GLYPHS, 0, 154, 0, "test-154" },
{ TEST_GLYPHS, 0, 165, 0, "test-165" }, // linear gradient
{ TEST_GLYPHS, 0, 175, 0, "test-175" }, // layers
{ BAD_COLRV1, 0, 154, 0, "bad-154" }, // recursion