mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-05 00:39:50 +00:00
Keep testing loading/saving properties as they are in userdata_codec.lua
This commit is contained in:
parent
9f75260d25
commit
c64756ebde
@ -52,8 +52,14 @@ if false then
|
||||
end
|
||||
|
||||
do
|
||||
-- Test load/save file (and keep the properties intact)
|
||||
local spr = Sprite{ fromFile="sprites/file-tests-props.aseprite" }
|
||||
assert(#spr.properties == 5)
|
||||
spr:saveAs("_test_userdata_codec_1.aseprite")
|
||||
spr:close()
|
||||
|
||||
local spr = Sprite{ fromFile="_test_userdata_codec_1.aseprite" }
|
||||
assert(#spr.properties == 5)
|
||||
assert(#spr.properties("ext") == 1)
|
||||
assert(spr.properties.a == true)
|
||||
assert(spr.properties.b == 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user