From 7daf5389b1b6f2d82e86d2a9aa8289f4c1aa5d12 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Sun, 6 May 2012 20:10:03 -0400 Subject: tests: Added two more tests Already had these XML files from W3C, but I didn't have POT files to test them against --- tests/EX-locNote-element-1.pot | 18 ++++++++++++++++++ tests/EX-locNoteRef-attribute-1.pot | 17 +++++++++++++++++ tests/run_tests.py | 6 ++++++ 3 files changed, 41 insertions(+) create mode 100644 tests/EX-locNote-element-1.pot create mode 100644 tests/EX-locNoteRef-attribute-1.pot 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 \n" +"Language-Team: LANGUAGE \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 \n" +"Language-Team: LANGUAGE \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') -- cgit v1.2.1