mirror of
https://github.com/Insality/druid.git
synced 2025-11-26 19:00:50 +01:00
Up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user