Koha/xt
Galen Charlton 9a7eedce78 Bug 12076: better detect an untranslatable template construct
Per bug 6458, template constructs of the form

<li [% IF (foo) %]selected="selected"[% END %]...

are forbidden as they can cause problems with translated templates.
However, the tt_valid.t test currently doesn't catch the variation
where '-' is used to suppress extra whitespace:

<li [%- IF (foo) -%]selected="selected"[%- END -%]...

This patch corrects the issue.

To test:

[1] Temporarily add the following line to a template file:

<li [%- IF a -%]a="a"[%- END -%] />

[2] Run prove -v xt/tt_valid.t.  Note that no error is reported.
[3] Apply the patch, and rerun the tt_valid.t test.  This time,
    an error should be reported.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Works well, detects the forbidden pattern
No koha-qa errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, passes all tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-12 17:57:35 +00:00
..
author Bug 8470: remove depreciated H:T:P test 2012-07-26 14:53:13 +02:00
find-license-problems move misc source file test and fix scripts to xt/ 2010-05-06 19:46:51 -04:00
find-misplaced-executables Bug 7476 Remove executable bit from files that probably should not be executed 2012-02-03 14:22:15 +01:00
find-nonutf8 exclude TinyMCE from non-UTF8 file checks 2010-05-06 19:55:44 -04:00
fix-old-fsf-address move misc source file test and fix scripts to xt/ 2010-05-06 19:46:51 -04:00
fix-old-fsf-address.exclude move misc source file test and fix scripts to xt/ 2010-05-06 19:46:51 -04:00
perltidyrc bug: 2269 - adding a perltidyrc file 2008-06-25 11:47:30 -05:00
permissions.t Bug 8022: Permissions test doesn't check all languages 2012-05-14 15:05:16 +02:00
single_quotes.t Bug 11304: fix display of detail page holdings tab in translated Bootstrap theme 2013-11-27 16:52:02 +00:00
tt_valid.t Bug 12076: better detect an untranslatable template construct 2014-04-12 17:57:35 +00:00
verify-debian-docbook.t Bug 9802 - add test case to ensure man pages have correct XML 2013-03-20 15:11:10 -04:00
yaml_valid.pl Bug 7994: scripts to check yaml files 2012-06-20 21:07:46 +02:00
yaml_valid.t Bug 7994: scripts to check yaml files 2012-06-20 21:07:46 +02:00