mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-30 12:19:04 +00:00
Add simple tests for SaveFile-commands
This commit is contained in:
parent
dd30981e8b
commit
b8854d3406
17
scripts/save_file_command.lua
Normal file
17
scripts/save_file_command.lua
Normal file
@ -0,0 +1,17 @@
|
||||
-- Copyright (C) 2022 Igara Studio S.A.
|
||||
--
|
||||
-- This file is released under the terms of the MIT license.
|
||||
-- Read LICENSE.txt for more information.
|
||||
|
||||
do
|
||||
local spr = Sprite(32, 32)
|
||||
spr.filename = "_test_a.png"
|
||||
app.command.SaveFile()
|
||||
assert(spr.filename == "_test_a.png")
|
||||
|
||||
app.command.SaveFileAs{ filename="_test_b.png" }
|
||||
assert(spr.filename == "_test_b.png")
|
||||
|
||||
app.command.SaveFileCopyAs{ filename="_test_c.png" }
|
||||
assert(spr.filename == "_test_b.png")
|
||||
end
|
Loading…
Reference in New Issue
Block a user