mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-02 13:09:27 +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
|
end
|
||||||
|
|
||||||
do
|
do
|
||||||
|
-- Test load/save file (and keep the properties intact)
|
||||||
local spr = Sprite{ fromFile="sprites/file-tests-props.aseprite" }
|
local spr = Sprite{ fromFile="sprites/file-tests-props.aseprite" }
|
||||||
assert(#spr.properties == 5)
|
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("ext") == 1)
|
||||||
assert(spr.properties.a == true)
|
assert(spr.properties.a == true)
|
||||||
assert(spr.properties.b == 1)
|
assert(spr.properties.b == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user