|
From: Ali M. <am...@pa...> - 2008-07-10 21:51:05
|
Hey Elliot, It's been a long time since I've worked with AS 2 or mobile, but curiously, what device only supports the equivalent of Flash 6 AS2? Isn't Flash Lite 1.5 basically Flash Player 4, FL2 Flash Player 7 (http://www.adobe.com/products/flashlite/productinfo/features/), and FL3 Flash player 8 (http://www.adobe.com/products/flashlite/features/)? I'm asking about Flash Player 6 vs. 7 because it affects which version of AsUnit you should use. For 6, you should use AsUnit 2. For 7, you should use AsUnit 2.5. If you can use AsUnit 2.5, you should. It's much better. Sorry for the suspicion; just trying to get a better understanding of what's going on with your project. One issue that does pop up is in the line: > [1] > class com.mycompany.test.NavigatorTest extends TestCase { > private var className:String = "NavigatorTest"; > The className should be static. As in: > [1] > class com.mycompany.test.NavigatorTest extends TestCase { > private static var className:String = "NavigatorTest"; > Ali On Thu, Jul 10, 2008 at 12:19 PM, Elliot Winard <ell...@fr...> wrote: > I'm writing asunit tests for an application that needs to run on a device > that only supports the equivalent of AS2.0 Flash 6. > > The tests run correctly but I get an error message [0] for each TestCase I > extend. The classes *do* have a className defined [1] but, based on the > debugger, it looks like the constructors are being called without a context > - "this" is not defined so the className passed to setCurrentClassName() in > TestCase.run() is not defined. > > Is anybody able to run asunit2 tests in FP6 without getting these warnings? > > Other than this the tests run using asunit out-of-the-box. I haven't looked > at adding asynchronous tests yet, but that's next. Based on the one day of > list traffic that I've seen, that is not yet backported to asunit. > > Thx, > -e > > > [0] >> Any class that extends Assert should have an instance member named > [className] because there is no reflection in AS 2.0 > > [1] > class com.mycompany.test.NavigatorTest extends TestCase { > private var className:String = "NavigatorTest"; > > // *** test methods go here *** > } > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |