Files
wxWidgets/tests
Vadim Zeitlin d58f9bea72 Rearrange sections in wxImage::Paste unit test
No real changes, just execute only the tests relevant for the section
being executed instead of always running the code loading PNG images
when running a section not using them at all.

This has the advantages of being a bit faster to execute (and the total
test suite run time does add up) and, more importantly, showing the
right amount of tests when executing a single section: e.g. now it's 1
in the simplest case, as expected, and not 5.

The disadvantage is, of course, slightly more code duplication, but it
doesn't seem a huge problem in practice and making each section code
more self-contained is arguably worth it.

Also, compensate for this somewhat by extracting all XPM definitions at
the function level: those are only initialized once (being static), so
there is no need to duplicate them.

Finally, also call AddHandler() once instead of once per section as
before.
2020-10-06 00:40:59 +02:00
..
2018-09-22 14:44:07 +02:00
2020-07-31 01:53:43 +02:00
2020-10-01 02:29:43 +02:00
2018-09-22 14:44:07 +02:00
2018-07-29 12:08:53 +02:00
2018-07-29 12:08:53 +02:00
2019-08-25 12:32:51 +02:00
2018-09-22 14:44:07 +02:00
2018-09-22 14:44:07 +02:00
2020-07-10 22:31:00 +01:00
2018-07-29 12:08:53 +02:00