Skip to main content
Participant
November 12, 2008
Question

FlexUnit and Testing addChild

  • November 12, 2008
  • 1 reply
  • 863 views
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 has been closed for replies.

1 reply

Participating Frequently
November 13, 2008
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/]