]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Improve test coverage of GSettings scanner
authorDaiki Ueno <ueno@gnu.org>
Thu, 4 Dec 2014 09:38:44 +0000 (18:38 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 4 Dec 2014 09:38:44 +0000 (18:38 +0900)
* xgettext-gsettings-1: Check empty string and multiline comment.

gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-gsettings-1

index faa6e3b58d8bcf26c028a2ed672dc38bf6c71e44..d16ccae4c0d72e977c24b59a609db258ab30b117 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-04  Daiki Ueno  <ueno@gnu.org>
+
+       tests: Improve test coverage of GSettings scanner
+       * xgettext-gsettings-1: Check empty string and multiline comment.
+
 2014-12-03  Daiki Ueno  <ueno@gnu.org>
 
        * msgunfmt-3: Locate overflow.mo in $abs_srcdir instead of '..'.
index fbc9b6e654536ed8b4eccd055d1a65f59d72b027..387f476d025a7c44dd391e5944b27a987d61e178 100755 (executable)
@@ -21,18 +21,21 @@ cat <<EOF > xg-gs-1.gschema.xml
   <schema id="org.gnome.example" path="/org/gnome/example/">
     <key name="foo" type="i">
       <default>0</default>
-      <summary context="Foo">Example Integer Key</summary>
+      <!-- This is the first line.
+           This is the second line. -->
+      <summary>Example Integer Key</summary>
       <description>
         The example integer key to test that the default value is not
         translated.
       </description>
     </key>
     <key name="bar" type="s">
-      <default l10n="messages">
+      <default l10n="messages" context="Foo">
         ' foo   bar   baz'
       </default>
     </key>
     <key name="baz" type="s">
+      <default l10n="messages" context="Baz"></default>
       <summary context="Baz"></summary>
     </key>
   </schema>
@@ -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