From 32b1348a977eecb4cbde1c32c7bacd90006d2d1d Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 13 Oct 2020 11:52:35 -0300 Subject: [PATCH] Some extra tests for user data text --- scripts/layer.lua | 3 +++ scripts/slice.lua | 3 +++ scripts/tag.lua | 3 +++ 3 files changed, 9 insertions(+) diff --git a/scripts/layer.lua b/scripts/layer.lua index 9f4372497..6eb6ec083 100644 --- a/scripts/layer.lua +++ b/scripts/layer.lua @@ -16,4 +16,7 @@ do assert(l.name == "My Layer") assert(l.opacity == 128) assert(l.blendMode == BlendMode.MULTIPLY) + + l.data = "Data" + assert(l.data == "Data") end diff --git a/scripts/slice.lua b/scripts/slice.lua index 85e62147e..3794e4a3e 100644 --- a/scripts/slice.lua +++ b/scripts/slice.lua @@ -21,4 +21,7 @@ do assert(a.pivot == nil) a.pivot = Point(16, 17) assert(a.pivot == Point(16, 17)) + + a.data = "Data" + assert(a.data == "Data") end diff --git a/scripts/tag.lua b/scripts/tag.lua index 67b9bd1a0..d49604ac6 100644 --- a/scripts/tag.lua +++ b/scripts/tag.lua @@ -35,4 +35,7 @@ do assert(a.color == Color(0, 0, 0)) a.color = Color(255, 0, 0) assert(a.color == Color(255, 0, 0)) + + a.data = "Data" + assert(a.data == "Data") end