This commit is contained in:
Insality
2025-11-10 23:12:00 +02:00
parent ed24fc35d5
commit 6782a7f46b
3 changed files with 3 additions and 13 deletions

View File

@@ -106,12 +106,6 @@ return function()
-- Test shadow tag with named color
local words = rich_text:set_text("<shadow=#000000>Shadowed Text</shadow>")
assert(#words > 0)
assert(words[1].shadow ~= nil)
-- Test shadow tag with RGBA values
words = rich_text:set_text("<shadow=0,0,0,1.0>Shadowed Text</shadow>")
assert(#words > 0)
assert(words[1].shadow ~= nil)
assert(words[1].shadow.x < 0.1) -- Black shadow should have low RGB values
@@ -131,12 +125,6 @@ return function()
-- Test outline tag with named color
local words = rich_text:set_text("<outline=#000000>Outlined Text</outline>")
assert(#words > 0)
assert(words[1].outline ~= nil)
-- Test outline tag with RGBA values
words = rich_text:set_text("<outline=0,0,0,1.0>Outlined Text</outline>")
assert(#words > 0)
assert(words[1].outline ~= nil)
assert(words[1].outline.x < 0.1) -- Black outline should have low RGB values