Hi Jean-Noel, > 1) I can't understand how the TestRunner determines the order of the > classes if you want to run all the tests in a package in a row. The > tests themselves are ordered by their position in the source file; but > I really can't understand how the TestRunner chooses the order of the > different classes. > Is there any way I can influence this order? No, at the moment it is not possible to set the order manually. But there is a bug report for this enhancement #3258 [1]. Please add yourself to the bug report, if you will be informed a bout the state. > > 2) It seems to me that popups are not supported on the test > environment. Eg, they don't appear; calling isSeeable() on a Popup > widget will always return false. Some other events related to > appearance on screen (like"appear") are also not fired. Again I > suspect this is because TestRunner itself is a Qooxdoo app so popups > would go to the TestRunner popup root widget. Any workaround if I > still would like to see my popups? Currently I am firing manually the > events in the tests and doing other quirks, but there might be a > better way. > The isSeeable() method is tested in our framework with the test class 'qx.test.ui.core.Widget', so this should be possible to test. But I don't know if it is possible to the the "appear" listener, but I think it should be also possible to test this.
The trick is to flush the qooxdoo queues, before you test for e.q. isSeeable(). Otherwise the optimizations from the UI core system avoid a rendering from the widget and a isSeeable() allways returns 'false'. I would prefer to extend from the 'qx.test.ui.LayoutTestCase' for this case (see 'qx.test.ui.core.Widget' as example). The benefit is that this class has a getRoot() method to add the widget to the application root and a flush() method to flush all qooxdoo queues. I hope this helps, if you have further questions, please ash. Cheers, Chris [1] http://bugzilla.qooxdoo.org/show_bug.cgi?id=3258 -- Christian Schmidt Software Entwickler 1&1 Internet AG - Web Technologies Ernst-Frey-Straße 9 · DE-76135 Karlsruhe [email protected] Amtsgericht Montabaur / HRB 6484 Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
