From 5288be6bd3b9705af7ef600ba26d3a5768e09766 Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 12 Jul 2007 05:35:35 +0000 Subject: Backporting POD and tests for Menu.pm from trunk git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1387 4979c152-3d1c-0410-bac9-87ea11338e46 --- t/data/12-menu1.ini | 5 +++++ t/data/12-menu2.ini | 9 +++++++++ t/data/12-menu3.ini | 9 +++++++++ t/data/12-menu4.ini | 19 +++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 t/data/12-menu1.ini create mode 100644 t/data/12-menu2.ini create mode 100644 t/data/12-menu3.ini create mode 100644 t/data/12-menu4.ini (limited to 't/data') diff --git a/t/data/12-menu1.ini b/t/data/12-menu1.ini new file mode 100644 index 00000000..6ad5b3fb --- /dev/null +++ b/t/data/12-menu1.ini @@ -0,0 +1,5 @@ +[AR] + +[AR--Add Transaction] +module=ar.pl +action=add diff --git a/t/data/12-menu2.ini b/t/data/12-menu2.ini new file mode 100644 index 00000000..0064ff6b --- /dev/null +++ b/t/data/12-menu2.ini @@ -0,0 +1,9 @@ +# Second test inifile +[section] ; New section +[AR--foo] ; But appending now to an old one +module=am.pl +. +No more content... Time to go home +Yes, really. +[This is not a real section] +not=real diff --git a/t/data/12-menu3.ini b/t/data/12-menu3.ini new file mode 100644 index 00000000..858fddf2 --- /dev/null +++ b/t/data/12-menu3.ini @@ -0,0 +1,9 @@ +# Third test inifile +[AR--foo] ; But appending now to an old one +module=ax.pl +[section] ; New section +. +No more content... Time to go home +Yes, really. +[This is not a real section] +not=real diff --git a/t/data/12-menu4.ini b/t/data/12-menu4.ini new file mode 100644 index 00000000..1233af84 --- /dev/null +++ b/t/data/12-menu4.ini @@ -0,0 +1,19 @@ +# Fourth test menu file +[AR] +type=test +target=acc_menu + +[AR--foo] +module=ax.pl +action=add +type=foo +[AR--test] +module=test +apples=login= ; becomes apples=$myconfig->{login} +pears=numberformat=2 ; becomes pears=$myconfig->{numberformat}2 + +[New Window] +target=_blank + +[Website] +href=ledgersmb.org -- cgit v1.2.3