You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Erik de Bruin <er...@ixsoftware.nl> on 2013/01/28 10:48:15 UTC

[FalconJx] unit test question

Mike,

Is there any way that the emitter code can know that it's being run as
a test vs. 'for real'?

Let me clarify: one of the changes I had to make for the VanillaSDK
prototype was to add a "self" reference in front of all public member
calls. As I didn't want to re-write 141 tests, I bypassed this by
checking if the main class is named "A", as it is for most tests...
But I recognise that is a very (VERY) ugly hack, hence the above
question.

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl