On 01/18/2010 12:23 PM, mck89 wrote:
> 
> I mean is there a way to initialize the application and then do tests with
> it?
> In my application main() method i set a property like this.foo, then in
> tests i try to access it with qx.core.Init.getApplication().foo but it's
> undefined.
> I want to do tests when the application is already initialized because i
> have to test its methods when it is loaded like in the source/index.html
> file, is it possible?

It's easy, just abstract away the functionality you want to test in an
own class. Then you can use this class in both your application's main()
method and in the test classes, and you don't have to fiddle around with
your main application class in the tests.

T.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to