From 52a3fe55aeac872d97a8c7a7f49441251393d167 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 16 Apr 2020 21:36:50 -0300 Subject: [PATCH] Check that app.range:clear() reset the selected colors --- scripts/range.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/range.lua b/scripts/range.lua index 54b62d2dc..3128e8e3c 100644 --- a/scripts/range.lua +++ b/scripts/range.lua @@ -108,4 +108,11 @@ do assert(#r.frames == 1) assert(r.layers[1] == app.activeLayer) assert(r.frames[1] == app.activeFrame) + + -- Check that Range:clear() reset the selected colors + r.colors = { 2 } + assert(#r.colors == 1) + assert(r.colors[1] == 2) + r:clear() + assert(#r.colors == 0) end