More tests for inline markup.

This commit is contained in:
Georg Brandl 2009-08-09 23:01:48 +02:00
parent 631ccfa3b5
commit 8ba78e88e7
3 changed files with 33 additions and 1 deletions

View File

@ -65,6 +65,14 @@ Others
.. envvar:: HOME .. envvar:: HOME
.. program:: python
.. cmdoption:: -c command
.. program:: perl
.. cmdoption:: -c
Testing references Testing references
================== ==================

View File

@ -103,16 +103,32 @@ Inline markup
* :newsgroup:`newsgroup` * :newsgroup:`newsgroup`
* :program:`program` * :program:`program`
* :regexp:`regexp` * :regexp:`regexp`
* :menuselection:`File --> Close`
* :file:`a/{varpart}/b`
* :samp:`print {i}`
*Linking inline markup* *Linking inline markup*
* :pep:`8` * :pep:`8`
* :rfc:`1` * :rfc:`1`
* :envvar:`HOME` * :envvar:`HOME`
* :keyword:`with`
* :token:`try statement <try_stmt>`
* :doc:`subdir/includes`
* ``:download:`` is tested in includes.txt
* :option:`Python -c option <python -c>`
Test :abbr:`abbr (abbreviation)` and another :abbr:`abbr (abbreviation)`. Test :abbr:`abbr (abbreviation)` and another :abbr:`abbr (abbreviation)`.
.. _with:
With
----
(Empty section.)
Tables Tables
------ ------

View File

@ -103,9 +103,17 @@ HTML_XPATH = {
".//li/strong": '^program$', ".//li/strong": '^program$',
".//li/em": '^dfn$', ".//li/em": '^dfn$',
".//li/tt/span[@class='pre']": '^kbd$', ".//li/tt/span[@class='pre']": '^kbd$',
".//a[@href='desc.html#envvar-HOME']/tt/span[@class='pre']": 'HOME', ".//li/em": u'File \N{TRIANGULAR BULLET} Close',
".//li/tt/span[@class='pre']": '^a/$',
".//li/tt/em/span[@class='pre']": '^varpart$',
".//li/tt/em/span[@class='pre']": '^i$',
".//a[@href='http://www.python.org/dev/peps/pep-0008']/strong": 'PEP 8', ".//a[@href='http://www.python.org/dev/peps/pep-0008']/strong": 'PEP 8',
".//a[@href='http://tools.ietf.org/html/rfc1.html']/strong": 'RFC 1', ".//a[@href='http://tools.ietf.org/html/rfc1.html']/strong": 'RFC 1',
".//a[@href='desc.html#envvar-HOME']/tt/span[@class='pre']": 'HOME',
".//a[@href='#with']/tt/span[@class='pre']": '^with$',
".//a[@href='#grammar-token-try_stmt']/tt/span": '^statement$',
".//a[@href='subdir/includes.html']/em": 'Including in subdir',
".//a[@href='desc.html#cmdoption-python-c']/em": 'Python -c option',
# abbreviations # abbreviations
".//abbr[@title='abbreviation']": '^abbr$', ".//abbr[@title='abbreviation']": '^abbr$',
# version stuff # version stuff