mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-27 01:44:30 +00:00
* gettext-tools/src/x-javascript.c (phase5_scan_xml_markup): Return int instead of bool. (phase5_get): Ignore XML markup parsed by phase5_scan_xml_markup. * gettext-tools/tests/xgettext-javascript-9: New file. * gettext-tools/tests/xgettext-javascript-10: New file. * gettext-tools/tests/xgettext-javascript-11: New file. * gettext-tools/tests/Makefile.am (TESTS): Add them.
27 lines
607 B
Bash
Executable File
27 lines
607 B
Bash
Executable File
#! /bin/sh
|
|
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
|
|
# Test JavaScript support: CDATA section.
|
|
|
|
cat <<\EOF > xg-js-10a.js
|
|
<![CDATA[]]>
|
|
EOF
|
|
|
|
cat <<\EOF > xg-js-10b.js
|
|
<![CDATA[A CDATA section can contain all sort of unescaped characters: >, <, /, etc.]]>
|
|
EOF
|
|
|
|
: ${XGETTEXT=xgettext}
|
|
LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-js-10.tmp xg-js-10a.js 2>xg-js-10.err
|
|
result=$?
|
|
cat xg-js-10.err
|
|
test $result = 0 || Exit 1
|
|
|
|
: ${XGETTEXT=xgettext}
|
|
LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-js-10.tmp xg-js-10b.js 2>xg-js-10.err
|
|
result=$?
|
|
cat xg-js-10.err
|
|
test $result = 0 || Exit 1
|
|
|
|
exit 0
|