Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 7c2cc49

Browse files
committed
[[ Tests ]] Only iterate shared groups once
1 parent bb3713c commit 7c2cc49

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/core/scriptstatus.livecodescript

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,19 @@ private command __RecursiveTest pObject
7171
repeat for each line tID in the cardIDs of pObject
7272
__RecursiveTest the long id of card id tID of pObject
7373
end repeat
74+
repeat for each line tID in the sharedGroupIDs of pObject
75+
__RecursiveTest the long id of group id tID of pObject
76+
end repeat
7477
break
7578
case "card"
79+
repeat for each line tID in the childControlIDs of pObject
80+
if word 1 of the name of control id tID of pObject is "group" and \
81+
the sharedBehavior of pObject then
82+
next repeat
83+
end if
84+
__RecursiveTest the long id of control id tID of pObject
85+
end repeat
86+
break
7687
case "group"
7788
case "background"
7889
case "bkgnd"

0 commit comments

Comments
 (0)