#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test JavaScript support: XML comment.
cat <<\EOF > xg-js-9a.js
<!---->
EOF
cat <<\EOF > xg-js-9b.js
<!-- This is an XML comment. -->
EOF
: ${XGETTEXT=xgettext}
LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-js-9.tmp xg-js-9a.js 2>xg-js-9.err
result=$?
cat xg-js-9.err
test $result = 0 || Exit 1
: ${XGETTEXT=xgettext}
LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-js-9.tmp xg-js-9b.js 2>xg-js-9.err
result=$?
cat xg-js-9.err
test $result = 0 || Exit 1
exit 0