I'm working on a bugfix for the [resistance_defaults] tag, for which the
unit test is going to be out-of-tree until we support some method of testing
it without affecting other tests. The version here is the part of that which
can be in-tree, because it doesn't change the core unit's stats.
* units - serpent walking corpse
* units - WC and Soulless serpent
* adding zombie serpent portrait
* units - set undead_variation to serpent for croc and serpents
This time they're added in the wrong place so as not to break the schema validation; they can be moved to the correct place later once that actually works.
This commit adds tools to test parsing of WML macros by the preprocessor
and parser. The commit also adds two tests of the #define and #undef
WML macro as examples.
The tests consist of three steps:
1. Define one WML string containing macros and one WML string
that lacks macros in each test. The two WML strings should be
equivalent after preprocessing.
2. Transform each WML string into a syntax tree (represented by config
objects) with the preprocessor and parser of Wesnoth.
3. Check if the two config objects are equal. Since the two WML strings
are equivalent, the two configs object should be equivalent if the
preprocessor and parsers are both correct.
The output of the preprocessor is in an undocumented format. Therefore,
this commit does not test the preprocessor as an isolated unit.
This commit tests the three config::add_child in src/config.cpp.
The config::add_child are among the most popular methods and
have at least 150 usages.
Notably, this commit adds a parametrized test through the
BOOST_DATA_TEST_CASE macro provided by boost/test/data/
test_case.hpp. None of the existing tests is parametrized.
Boost 1.58 and below do not support parametrized tests.
Ubuntu 16.04 ships with Boost 1.58 and reaches end of life on
April 2021.
This commit also formats the names of the tests as
method_name_StateOfThis_allArguments_AllExpectedBehaviors.
* units - move SotA zombie rats to core
* units - hackish movement anim for zombie gryphons
* units/monsters - better choices from available undead_variations
* units - falcon zombie (no soulless yet)
* units - adding zombie falcon portrait
* units - adding soulless falcon
* units - adding gorer portrait
* units - slight adjustment to zombie falcon
* units - adding zombie rat portrait
* units - zombie tusker
* units - tusker soulless
* units - wire in new undead variations to falcon and tusker
* units - fix some sprite shadows in the zombie tuskers
This fires a NOTIFIED_MOFIDIED event in the parent widget when the toggle state changes instead of manually
passing a callback in as a ctor parameter. The only widget which handled this was the multimenu_button, and
that did some stuff, then fired off a NOTIFY_MODIFIED event of its own. This change basically just installs
a handler of its own for the NOTIFY_MODIFIED event, which should still allow any other dialogs to add their
own handlers if necessary.
This also adds a second constructor that takes the parent widget and pulls the rectangle and markup settings
from it rather than having them passed in manually. The ctor that takes them is retained for the cases where
the menu needs to be manually invoked without a parent widget.