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-05-08 08:01:56 +02:00
2020-08-14 19:26:33 +02:00
2017-12-09 14:15:37 +01:00
2020-07-31 01:53:43 +02:00
2019-02-02 17:25:37 +01:00
2017-11-02 01:53:21 +01:00
2020-10-01 02:29:43 +02:00
2020-05-09 23:23:31 +02:00
2018-09-22 14:44:07 +02:00
2020-07-14 18:16:59 +02:00
2019-04-21 20:10:30 +02:00
2020-04-07 14:30:01 +02:00
2018-07-29 12:08:53 +02:00
2020-06-30 23:00:06 +02:00
2020-05-01 18:57:54 +02:00
2020-04-21 09:00:04 -07:00
2017-11-25 11:13:02 +01:00
2019-04-26 13:36:00 +02:00
2020-05-02 03:38:28 +02:00
2018-11-04 18:28:33 +01:00
2020-09-27 13:38:41 +02:00
2017-03-11 03:37:07 +01:00
2019-07-19 01:40:44 +02:00
2020-10-06 00:40:59 +02:00
2020-05-08 08:01:56 +02:00
2018-07-29 12:08:53 +02:00
2018-02-23 16:00:06 +01:00
2020-03-10 02:42:08 +01:00
2020-02-02 22:50:32 -08:00
2020-07-14 18:16:59 +02:00
2020-05-08 08:01:56 +02:00
2019-11-01 16:00:01 +01:00
2020-05-08 08:01:56 +02:00
2019-08-25 12:32:51 +02:00
2018-12-07 04:17:16 +01:00
2020-07-05 23:19:36 +02:00
2018-09-22 14:44:07 +02:00
2020-02-05 03:54:25 +01:00
2020-04-07 14:30:01 +02:00
2018-09-22 14:44:07 +02:00
2019-07-18 17:45:20 +02:00
2019-02-23 14:36:36 +01:00
2020-07-10 22:31:00 +01:00
2020-07-11 19:05:06 +02:00
2019-01-04 23:51:31 +01:00
2019-10-17 22:01:36 +02:00
2017-12-09 14:17:34 +01:00
2018-07-29 12:08:53 +02:00
2020-09-13 08:27:45 -07:00
2020-08-24 16:47:37 +02:00
2020-07-15 02:09:42 +02:00
2018-11-04 18:28:33 +01:00
2019-03-20 17:07:56 -05:00
2020-10-06 00:37:56 +02:00
2020-10-06 00:37:56 +02:00
2020-10-06 00:37:56 +02:00
2020-10-06 00:37:56 +02:00
2017-11-02 01:53:29 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2020-09-26 01:43:20 +02:00
2020-09-26 01:43:20 +02:00
2020-07-23 16:25:39 +02:00
2020-05-02 17:02:36 +02:00
2020-05-02 17:02:36 +02:00
2020-09-26 01:43:20 +02:00
2020-05-02 17:02:36 +02:00
2020-07-23 16:25:39 +02:00
2020-05-02 17:02:36 +02:00
2020-05-02 17:02:36 +02:00
2020-09-26 01:43:20 +02:00
2020-05-02 17:02:36 +02:00
2020-07-23 16:25:39 +02:00
2020-05-02 17:02:36 +02:00
2020-05-02 17:02:36 +02:00
2020-09-26 01:43:20 +02:00
2020-05-02 17:02:36 +02:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2020-10-06 00:37:56 +02:00
2020-07-17 17:52:16 +02:00
2019-12-13 21:44:26 +01:00
2018-04-06 15:39:55 +02:00
2020-07-17 17:52:16 +02:00
2019-01-24 22:52:46 +01:00
2017-12-02 14:38:19 +01:00
2017-11-05 17:28:24 +01:00
2020-09-25 01:04:49 +02:00
2020-07-17 17:52:16 +02:00
2020-09-21 15:54:42 +02:00
2019-10-17 22:03:44 +02:00