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

Commit 5e6c660

Browse files
committed
[[ Tests ]] Tweak propertyChanged test
1 parent 22454c3 commit 5e6c660

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/ide-support/development/propertychanged.livecodescript

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,19 @@ private command _TestPropertyChanged pObjType, pWhere
6060
break
6161
end switch
6262

63-
wait for 0 with messages
64-
TestAssert "put" && pWhere && pObjType && \
65-
"triggers propertyChanged", tObj is sTarget
63+
local tParams
64+
put tObj into tParams[1]
65+
TestRepeat "put" && pWhere && pObjType && \
66+
"triggers propertyChanged", IsTargetCorrect, \
67+
the long id of me, 10, tParams
6668

67-
revIDEUnsubscribe "idePropertyChanged", tObj
69+
revIDEUnsubscribe "idePropertyChanged", "", tObj
6870
end _TestPropertyChanged
6971

72+
command IsTargetCorrect pObj
73+
return pObj is sTarget
74+
end IsTargetCorrect
75+
7076
on TestPutPropertyChanged
7177
repeat for each item tWhere in "into,after"
7278
repeat for each item tObjType in "field,button"

0 commit comments

Comments
 (0)