Commits

Takayuki Shimizukawa committed 21fee18

Add test refs #1265 (comment-6264794) to validate translated label link shifting.

  • Participants
  • Parent commits fc69d22

Comments (0)

Files changed (3)

tests/roots/test-intl/label_target.po

 msgid "`bridge label`_ is not translatable but linked to translated section title."
 msgstr "X `bridge label`_ IS NOT TRANSLATABLE BUT LINKED TO TRANSLATED SECTION TITLE."
 
+msgid ""
+"`bridge label2`_ point to ``section and label`` and `bridge label`_ point to "
+"``label bridged target section``. The second appeared `bridge label2`_ point "
+"to correct target."
+msgstr ""
+"X `bridge label`_ POINT TO ``LABEL BRIDGED TARGET SECTION`` AND "
+"`bridge label2`_ POINT TO ``SECTION AND LABEL``. THE SECOND APPEARED "
+"`bridge label2`_ POINT TO CORRECT TARGET."

tests/roots/test-intl/label_target.txt

 
 
 .. _bridge label: `label bridged target section`_
+.. _bridge label2: `section and label`_
 
 label bridged target section
 =============================
 
 `bridge label`_ is not translatable but linked to translated section title.
 
+`bridge label2`_ point to ``section and label`` and `bridge label`_ point to ``label bridged target section``. The second appeared `bridge label2`_ point to correct target.
+

tests/test_intl.py

                    'IS NOT TRANSLATABLE BUT LINKED TO TRANSLATED ' +
                    'SECTION TITLE.'],
             refs=['label-bridged-target-section'])
+    assert_elem(
+            para3[1],
+            texts=['X', 'bridge label', 'POINT TO',
+                   'LABEL BRIDGED TARGET SECTION', 'AND', 'bridge label2',
+                   'POINT TO', 'SECTION AND LABEL', '. THE SECOND APPEARED',
+                   'bridge label2', 'POINT TO CORRECT TARGET.'],
+            refs=['label-bridged-target-section',
+                  'section-and-label',
+                  'section-and-label'])
 
 
 @with_intl_app(buildername='text', warning=warnfile)