Test Cel.frame/frameNumber properties correctly

This commit is contained in:
David Capello 2018-11-27 15:06:20 -03:00
parent 6d687cddab
commit 3ee484e5eb

View File

@ -10,7 +10,9 @@ assert(#s.cels == 1)
local c = s.cels[1]
assert(c.sprite == s)
assert(c.layer == s.layers[1])
assert(c.frame == 1)
assert(c.frame == s.frames[1])
assert(c.frame.frameNumber == 1)
assert(c.frameNumber == 1)
assert(c.image)
assert(c.bounds == Rectangle(0, 0, 32, 64))
assert(c.position == Point(0, 0))