Check that app.range:clear() reset the selected colors

This commit is contained in:
David Capello 2020-04-16 21:36:50 -03:00
parent 58dccdaff2
commit 52a3fe55ae

View File

@ -108,4 +108,11 @@ do
assert(#r.frames == 1)
assert(r.layers[1] == app.activeLayer)
assert(r.frames[1] == app.activeFrame)
-- Check that Range:clear() reset the selected colors
r.colors = { 2 }
assert(#r.colors == 1)
assert(r.colors[1] == 2)
r:clear()
assert(#r.colors == 0)
end