On 11.02.2009, at 09:39, MacArthur, Ian (SELEX GALILEO, UK) wrote: > > >> ..so that one can easily just run through all the tests >> quickly just by >> clicking the 'Next Test' button, and it just selects >> the next item >> in the browser. Or just clicking in the browser will >> run that particular >> test quickly. I guess "Next Test" could be an FL_ENTER >> button, so the >> enter key can be used to advance through the tests.. > > > This seems like a good idea - although it seems to me that (once > upon a > time) there were going to be test routines for every function. I guess > that soon there were too many functions to make that feasible.
When I ported FLTK to the Mac, I started exactly that. The source code is still in test/unittest.cxx. The goal was to be able to verify rendering on every available platform. I wanted to render markers first and then overwrite them with whatever drawing function I was testing. That way, of-by-one errors, for example in fl_rect, would become obvious right away. I would *love* to have that for text rendering. For some test, a comparison to an image would be in order as well (for example: this is how FL_HELVETICA should look and this is how it is rendered on this machine). Matthias ---- http://robowerk.com/ _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
