2018-11-03 13:39:43 -03:00
|
|
|
-- Copyright (C) 2018 Igara Studio S.A.
|
|
|
|
--
|
|
|
|
-- This file is released under the terms of the MIT license.
|
|
|
|
-- Read LICENSE.txt for more information.
|
|
|
|
|
|
|
|
local s = Sprite(32, 64)
|
|
|
|
assert(s == app.activeSprite)
|
2018-11-22 14:45:26 -03:00
|
|
|
assert(s == app.site.sprite)
|
2018-11-03 13:39:43 -03:00
|
|
|
assert(s == app.activeCel.sprite)
|
2018-11-22 14:45:26 -03:00
|
|
|
assert(s == app.site.cel.sprite)
|
2018-11-03 13:39:43 -03:00
|
|
|
assert(s == app.activeFrame.sprite)
|
2018-11-22 14:45:26 -03:00
|
|
|
assert(s == app.site.frame.sprite)
|
2018-11-03 13:39:43 -03:00
|
|
|
assert(1 == app.activeFrame.frameNumber)
|
2018-11-22 14:45:26 -03:00
|
|
|
assert(1 == app.site.frame.frameNumber)
|
2018-11-22 15:05:03 -03:00
|
|
|
assert(1 == app.site.frameNumber)
|
2018-11-03 13:39:43 -03:00
|
|
|
assert(0.100 == app.activeFrame.duration) -- Default frame duration
|
2018-11-22 14:45:26 -03:00
|
|
|
assert(0.100 == app.site.frame.duration)
|
2018-11-03 13:39:43 -03:00
|
|
|
|
2018-11-07 16:52:49 -03:00
|
|
|
-- TODO fix these tests when there is no UI
|
|
|
|
--app.command.NewFrame()
|
|
|
|
--assert(2 == app.activeFrame.frameNumber)
|
|
|
|
--assert(0.100 == app.activeFrame.duration) -- Default frame duration
|