mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4095 from Andne/cpp-tests
Cleanup the C++/Intersphinx test to avoid std namespace
This commit is contained in:
commit
a3b66eb095
@ -5,4 +5,4 @@ test-ext-intersphinx-cppdomain
|
|||||||
|
|
||||||
:cpp:class:`Bar`
|
:cpp:class:`Bar`
|
||||||
|
|
||||||
.. cpp:function:: std::uint8_t FooBarBaz()
|
.. cpp:function:: foons::bartype FooBarBaz()
|
||||||
|
@ -232,6 +232,13 @@ def test_missing_reference_cppdomain(tempdir, app, status, warning):
|
|||||||
' href="https://docs.python.org/index.html#cpp_foo_bar"'
|
' href="https://docs.python.org/index.html#cpp_foo_bar"'
|
||||||
' title="(in foo v2.0)"><code class="xref cpp cpp-class docutils literal">'
|
' title="(in foo v2.0)"><code class="xref cpp cpp-class docutils literal">'
|
||||||
'<span class="pre">Bar</span></code></a>' in html)
|
'<span class="pre">Bar</span></code></a>' in html)
|
||||||
|
assert ('<a class="reference external"'
|
||||||
|
' href="https://docs.python.org/index.html#foons"'
|
||||||
|
' title="(in foo v2.0)">foons</a>' in html)
|
||||||
|
assert ('<a class="reference external"'
|
||||||
|
' href="https://docs.python.org/index.html#foons_bartype"'
|
||||||
|
' title="(in foo v2.0)">bartype</a>' in html)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_missing_reference_jsdomain(tempdir, app, status, warning):
|
def test_missing_reference_jsdomain(tempdir, app, status, warning):
|
||||||
|
@ -38,6 +38,8 @@ std cpp:type 1 index.html#std -
|
|||||||
std::uint8_t cpp:type 1 index.html#std_uint8_t -
|
std::uint8_t cpp:type 1 index.html#std_uint8_t -
|
||||||
foo::Bar cpp:class 1 index.html#cpp_foo_bar -
|
foo::Bar cpp:class 1 index.html#cpp_foo_bar -
|
||||||
foo::Bar::baz cpp:function 1 index.html#cpp_foo_bar_baz -
|
foo::Bar::baz cpp:function 1 index.html#cpp_foo_bar_baz -
|
||||||
|
foons cpp:type 1 index.html#foons -
|
||||||
|
foons::bartype cpp:type 1 index.html#foons_bartype -
|
||||||
a term std:term -1 glossary.html#term-a-term -
|
a term std:term -1 glossary.html#term-a-term -
|
||||||
ls.-l std:cmdoption 1 index.html#cmdoption-ls-l -
|
ls.-l std:cmdoption 1 index.html#cmdoption-ls-l -
|
||||||
docname std:doc -1 docname.html -
|
docname std:doc -1 docname.html -
|
||||||
|
Loading…
Reference in New Issue
Block a user