wmlindent pass on data/test/, safe subset
There is some WML in data/test/scenarios/ that causes wmlindent to misbehave (bug #22264 and possibly others awaiting a more thorough diagnosis), so that subdir is not part of this commit.
This commit is contained in:
parent
febdc693b1
commit
1799d5eb0d
4 changed files with 1824 additions and 1834 deletions
|
@ -2,17 +2,17 @@
|
|||
|
||||
#ifndef DONT_RELOAD_CORE
|
||||
|
||||
{themes/}
|
||||
{themes/}
|
||||
|
||||
# Load core wml for tests including macros and units
|
||||
{core}
|
||||
# Load core wml for tests including macros and units
|
||||
{core}
|
||||
|
||||
[textdomain]
|
||||
name="wesnoth"
|
||||
[/textdomain]
|
||||
[textdomain]
|
||||
name="wesnoth-lib"
|
||||
[/textdomain]
|
||||
[textdomain]
|
||||
name="wesnoth"
|
||||
[/textdomain]
|
||||
[textdomain]
|
||||
name="wesnoth-lib"
|
||||
[/textdomain]
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -22,19 +22,18 @@
|
|||
|
||||
#ifdef TEST
|
||||
|
||||
#Load test macros
|
||||
{test/macros}
|
||||
#Load test macros
|
||||
{test/macros}
|
||||
|
||||
#Load test scenarios
|
||||
{test/scenarios}
|
||||
#Load test scenarios
|
||||
{test/scenarios}
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef DONT_RELOAD_CORE
|
||||
[binary_path]
|
||||
path=data/core
|
||||
[/binary_path]
|
||||
[binary_path]
|
||||
path=data/core
|
||||
[/binary_path]
|
||||
|
||||
{game_config.cfg}
|
||||
{game_config.cfg}
|
||||
#endif
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,58 +1,58 @@
|
|||
#textdomain wesnoth
|
||||
#define RETURN X
|
||||
[if]
|
||||
{X}
|
||||
[then]
|
||||
[endlevel]
|
||||
result=victory
|
||||
linger_mode = yes
|
||||
[/endlevel]
|
||||
[/then]
|
||||
[else]
|
||||
[endlevel]
|
||||
result=defeat
|
||||
linger_mode = yes
|
||||
[/endlevel]
|
||||
[/else]
|
||||
[/if]
|
||||
[if]
|
||||
{X}
|
||||
[then]
|
||||
[endlevel]
|
||||
result=victory
|
||||
linger_mode = yes
|
||||
[/endlevel]
|
||||
[/then]
|
||||
[else]
|
||||
[endlevel]
|
||||
result=defeat
|
||||
linger_mode = yes
|
||||
[/endlevel]
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
#define ASSERT X
|
||||
[if]
|
||||
{X}
|
||||
[else]
|
||||
[endlevel]
|
||||
result=defeat
|
||||
linger_mode = yes
|
||||
[/endlevel]
|
||||
[/else]
|
||||
[/if]
|
||||
[if]
|
||||
{X}
|
||||
[else]
|
||||
[endlevel]
|
||||
result=defeat
|
||||
linger_mode = yes
|
||||
[/endlevel]
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
#define GENERIC_UNIT_TEST NAME CONTENT
|
||||
[test]
|
||||
name = "Unit Test " + {NAME}
|
||||
map_data = "{test/maps/generic_unit_test.map}"
|
||||
turns = -1
|
||||
id = {NAME}
|
||||
[test]
|
||||
name = "Unit Test " + {NAME}
|
||||
map_data = "{test/maps/generic_unit_test.map}"
|
||||
turns = -1
|
||||
id = {NAME}
|
||||
|
||||
{DAWN}
|
||||
{DAWN}
|
||||
|
||||
[side]
|
||||
side=1
|
||||
controller=human
|
||||
name = "Alice"
|
||||
type = Elvish Archer
|
||||
id=alice
|
||||
[/side]
|
||||
[side]
|
||||
side=2
|
||||
controller=human
|
||||
name = "Bob"
|
||||
type = Orcish Grunt
|
||||
id=bob
|
||||
[/side]
|
||||
[side]
|
||||
side=1
|
||||
controller=human
|
||||
name = "Alice"
|
||||
type = Elvish Archer
|
||||
id=alice
|
||||
[/side]
|
||||
[side]
|
||||
side=2
|
||||
controller=human
|
||||
name = "Bob"
|
||||
type = Orcish Grunt
|
||||
id=bob
|
||||
[/side]
|
||||
|
||||
{CONTENT}
|
||||
[/test]
|
||||
{CONTENT}
|
||||
[/test]
|
||||
#enddef
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue