@@ -262,7 +262,7 @@ on TestIntelligenceObjectPropertyCompleted
262262
263263 local tValidScript
264264 ideExecuteScript "width" , tButton , false , tValidScript
265- TestAssert "intelligence object property autocomplete result" , the result is empty
265+ TestAssert "intelligence object property autocomplete result" , msg is the width of tButton
266266 TestAssert "intelligence object property autocomplete executed" , tValidScript is "put the width of" && tButtonName
267267end TestIntelligenceObjectPropertyCompleted
268268
@@ -304,3 +304,25 @@ on TestIntelligenceObjectCommandWithTwoParams
304304 TestAssert "intelligence object command two params result" , msg is 2
305305 TestAssert "intelligence object command two params executed" , tValidScript is tToExecute
306306end TestIntelligenceObjectCommandWithTwoParams
307+
308+ on TestReferenceControlOnActiveStack
309+ local tStack , tField
310+ create stack
311+ put it into tStack
312+
313+ set the defaultStack to the short name of tStack
314+
315+ create field
316+ put it into tField
317+
318+ -- change the default stack
319+ create stack
320+ set the defaultStack to the short name of it
321+
322+ local tToExecute
323+ put "put bar into field 1" into tToExecute
324+ ideExecuteScript tToExecute , tStack , false , tValidScript
325+
326+ TestAssert "intelligence object command two params result" , the text of tField is "bar"
327+ TestAssert "intelligence object command two params executed" , tValidScript is tToExecute
328+ end TestReferenceControlOnActiveStack
0 commit comments