Skip to content

Commit

Permalink
add [show_if]'s to the test scenario for this feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jul 1, 2014
1 parent a968bc6 commit df44636
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions data/test/scenarios/test_max_menu_items.cfg
@@ -1,4 +1,14 @@
{GENERIC_UNIT_TEST "test_max_menu_items" (
[event]
name=side 1 turn
first_time_only=no
{VARIABLE current_side 1}
[/event]
[event]
name=side 2 turn
first_time_only=no
{VARIABLE current_side 2}
[/event]
[event]
name=start
[set_menu_item]
Expand All @@ -8,6 +18,9 @@
[set_menu_item]
id=bar2
description=foo2
[show_if]
{VARIABLE_CONDITIONAL current_side equals 1}
[/show_if]
[/set_menu_item]
[set_menu_item]
id=bar3
Expand All @@ -25,6 +38,9 @@
[set_menu_item]
id=bar5
description=foo5
[show_if]
{VARIABLE_CONDITIONAL current_side equals 1}
[/show_if]
[/set_menu_item]
[set_menu_item]
id=bar6
Expand All @@ -44,10 +60,16 @@
[set_menu_item]
id=bar9
description=foo9
[show_if]
{VARIABLE_CONDITIONAL current_side equals 1}
[/show_if]
[/set_menu_item]
[set_menu_item]
id=bar10
description=foo10
[show_if]
{VARIABLE_CONDITIONAL current_side equals 1}
[/show_if]
[/set_menu_item]
[set_menu_item]
id=bar12
Expand Down

0 comments on commit df44636

Please sign in to comment.