Takayuki Shimizukawa avatar Takayuki Shimizukawa committed 21fee18

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

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.