Skip to main content
Participant
Nov 12, 2008 9:23 PM UTC
Question

FlexUnit and Testing addChild

Hi,

How do you go about testing adding and removing MovieClips, Sprites, and/or UIComponents in FlexUnit for Flex projects? I would like to test, for example, that the right movieclip is on the top of the stack and whatnot.

Thanks so much for your help!

Lance
This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participating Frequently
Nov 13, 2008 3:44 AM UTC
There is a general approach that I wrote up for testing visual<br />components with FlexUnit which is available as part of the Flex<br />Cookbook:<br /><br />http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=7222<br /><br />That article also includes a link to Visual FlexUnit which is a<br />framework for making visual assertions about components.<br /><br />Lastly, newer versions of fluint http://code.google.com/p/fluint/<br />include support UIComponent testing, but I can't comment on its<br />capabilities as I've not used it.<br /><br />-- Daniel R. <danielr@neophi.com> [http://danielr.neophi.com/]
Translate