mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-15 16:21:08 +00:00
Test resizing non-active sprite
This commit is contained in:
parent
b450229caa
commit
710e6d7ea2
@ -93,3 +93,23 @@ do
|
||||
assert(#a.layers == 1)
|
||||
assert(#b.layers == 3)
|
||||
end
|
||||
|
||||
-- Resize non-active sprite
|
||||
do
|
||||
local a = Sprite(32, 32)
|
||||
local b = Sprite(64, 64)
|
||||
app.activeSprite = a
|
||||
a:resize(10, 10)
|
||||
b:resize(20, 20)
|
||||
assert(a.width == 10)
|
||||
assert(a.height == 10)
|
||||
assert(b.width == 20)
|
||||
assert(b.height == 20)
|
||||
app.undo()
|
||||
assert(a.width == 32)
|
||||
assert(a.height == 32)
|
||||
app.activeSprite = b
|
||||
app.undo()
|
||||
assert(b.width == 64)
|
||||
assert(b.height == 64)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user