mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-03 21:49:03 +00:00
Update tests for tags
This commit is contained in:
parent
3ee484e5eb
commit
71a02b537a
@ -10,14 +10,14 @@ do
|
||||
|
||||
a = s:newTag(1, 8)
|
||||
assert(a.sprite == s)
|
||||
assert(a.fromFrame == 1)
|
||||
assert(a.toFrame == 8)
|
||||
assert(a.fromFrame.frameNumber == 1)
|
||||
assert(a.toFrame.frameNumber == 8)
|
||||
assert(a.frames == 8)
|
||||
|
||||
a.fromFrame = 2
|
||||
a.toFrame = 5
|
||||
assert(a.fromFrame == 2)
|
||||
assert(a.toFrame == 5)
|
||||
assert(a.fromFrame.frameNumber == 2)
|
||||
assert(a.toFrame.frameNumber == 5)
|
||||
|
||||
assert(a.name == "Tag")
|
||||
a.name = "Tag A"
|
||||
|
@ -31,6 +31,6 @@ do
|
||||
assert(a == s.tags[1])
|
||||
assert(c == s.tags[2])
|
||||
|
||||
assert(c.fromFrame == 5)
|
||||
assert(c.toFrame == 8)
|
||||
assert(c.fromFrame.frameNumber == 5)
|
||||
assert(c.toFrame.frameNumber == 8)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user