mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Add some app.site tests
This commit is contained in:
parent
bd521ec45f
commit
567115dbc3
@ -5,10 +5,15 @@
|
||||
|
||||
local s = Sprite(32, 64)
|
||||
assert(s == app.activeSprite)
|
||||
assert(s == app.site.sprite)
|
||||
assert(s == app.activeCel.sprite)
|
||||
assert(s == app.site.cel.sprite)
|
||||
assert(s == app.activeFrame.sprite)
|
||||
assert(s == app.site.frame.sprite)
|
||||
assert(1 == app.activeFrame.frameNumber)
|
||||
assert(1 == app.site.frame.frameNumber)
|
||||
assert(0.100 == app.activeFrame.duration) -- Default frame duration
|
||||
assert(0.100 == app.site.frame.duration)
|
||||
|
||||
-- TODO fix these tests when there is no UI
|
||||
--app.command.NewFrame()
|
||||
|
Loading…
Reference in New Issue
Block a user