diff options
author | Shaun McCance <shaunm@gnome.org> | 2012-05-06 20:10:03 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2012-05-06 20:10:03 -0400 |
commit | 7daf5389b1b6f2d82e86d2a9aa8289f4c1aa5d12 (patch) | |
tree | d4b005390a9a259b79949daa1476f36114ce48ff | |
parent | 2548f4006f064caf2d6ecd0402f723f650b135d6 (diff) | |
download | itstool-7daf5389b1b6f2d82e86d2a9aa8289f4c1aa5d12.tar.gz |
tests: Added two more tests
Already had these XML files from W3C, but I didn't have POT files
to test them against
-rw-r--r-- | tests/EX-locNote-element-1.pot | 18 | ||||
-rw-r--r-- | tests/EX-locNoteRef-attribute-1.pot | 17 | ||||
-rw-r--r-- | tests/run_tests.py | 6 |
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/EX-locNote-element-1.pot b/tests/EX-locNote-element-1.pot new file mode 100644 index 0000000..df06564 --- /dev/null +++ b/tests/EX-locNote-element-1.pot @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-05-06 20:07-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: body/msg +#. The variable {0} has three possible values: 'printer', 'stacker' and +#. 'stapler options'. +#: tests/EX-locNote-element-1.xml:12 +msgid "The {0} has been disabled." +msgstr "" + diff --git a/tests/EX-locNoteRef-attribute-1.pot b/tests/EX-locNoteRef-attribute-1.pot new file mode 100644 index 0000000..05367fe --- /dev/null +++ b/tests/EX-locNoteRef-attribute-1.pot @@ -0,0 +1,17 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-05-06 20:09-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: body/msg +#. (itstool) link: ErrorsInfo.html/#NotFound +#: tests/EX-locNoteRef-attribute-1.xml:10 +msgid "Cannot find {0} on {1}." +msgstr "" + diff --git a/tests/run_tests.py b/tests/run_tests.py index e938b88..ffc140b 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -83,12 +83,18 @@ class ItstoolTests(unittest.TestCase): def test_LocNote4(self): self._test_pot_generation('LocNote4.xml') + def test_EX_locNote_element_1(self): + self._test_pot_generation('EX-locNote-element-1.xml') + def test_EX_locNote_selector_2(self): self._test_pot_generation('EX-locNote-selector-2.xml') def test_EX_locNotePointer_attribute_1(self): self._test_pot_generation('EX-locNotePointer-attribute-1.xml') + def test_EX_locNoteRef_attribute_1(self): + self._test_pot_generation('EX-locNoteRef-attribute-1.xml') + def test_EX_locNoteRefPointer_attribute_1(self): self._test_pot_generation('EX-locNoteRefPointer-attribute-1.xml') |