mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 10:13:22 +00:00
Add test to save UUID properties on .aseprite files
This commit is contained in:
parent
da80192d0f
commit
66efb35a8c
@ -149,4 +149,21 @@ do
|
||||
assert(spr.properties.a[3][3] == 6)
|
||||
assert(spr.properties.a[4].a == "bye")
|
||||
assert(spr.properties.a[4].b == 10)
|
||||
end
|
||||
end
|
||||
|
||||
-- Test save UUID
|
||||
do
|
||||
local a = Uuid()
|
||||
local b = Uuid()
|
||||
local spr = Sprite(1, 1)
|
||||
spr.properties.a = a
|
||||
spr.properties.b = b
|
||||
|
||||
spr:saveAs("_test_userdata_codec_4.aseprite")
|
||||
spr:close()
|
||||
|
||||
spr = Sprite{ fromFile="_test_userdata_codec_4.aseprite" }
|
||||
assert(#spr.properties == 2)
|
||||
assert(spr.properties.a == a)
|
||||
assert(spr.properties.b == b)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user