From: Daiki Ueno Date: Thu, 4 Dec 2014 09:38:44 +0000 (+0900) Subject: tests: Improve test coverage of GSettings scanner X-Git-Tag: v0.19.4~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6194e04bc89968548d4e7fcefffcfe65cce0fafb;p=thirdparty%2Fgettext.git tests: Improve test coverage of GSettings scanner * xgettext-gsettings-1: Check empty string and multiline comment. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index faa6e3b58..d16ccae4c 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2014-12-04 Daiki Ueno + + tests: Improve test coverage of GSettings scanner + * xgettext-gsettings-1: Check empty string and multiline comment. + 2014-12-03 Daiki Ueno * msgunfmt-3: Locate overflow.mo in $abs_srcdir instead of '..'. diff --git a/gettext-tools/tests/xgettext-gsettings-1 b/gettext-tools/tests/xgettext-gsettings-1 index fbc9b6e65..387f476d0 100755 --- a/gettext-tools/tests/xgettext-gsettings-1 +++ b/gettext-tools/tests/xgettext-gsettings-1 @@ -21,18 +21,21 @@ cat < xg-gs-1.gschema.xml 0 - Example Integer Key + + Example Integer Key The example integer key to test that the default value is not translated. - + ' foo bar baz' + @@ -61,16 +64,19 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: xg-gs-1.gschema.xml:6 +#. This is the first line. +#. This is the second line. +#: xg-gs-1.gschema.xml:8 msgid "Example Integer Key" msgstr "" -#: xg-gs-1.gschema.xml:7 +#: xg-gs-1.gschema.xml:9 msgid "" "The example integer key to test that the default value is not translated." msgstr "" -#: xg-gs-1.gschema.xml:13 +#: xg-gs-1.gschema.xml:15 +msgctxt "Foo" msgid "' foo bar baz'" msgstr "" EOF