Skip to content

Adding a failing test case for bad figure behavior #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 23, 2021

Conversation

weaverryan
Copy link
Contributor

@weaverryan weaverryan commented Mar 19, 2021

Closes #65

Failing test cases for #65 - but it's actually fixed in doctrine/rst-parser#141

Also updated doctrine/rst-parser to latest 0.4 branch version.

if (null === $document) {
throw new \RuntimeException('Content expected, none found.');
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little extra thing - admonitions (notes, etc) MUST have content. For example, this is illegal:

.. note::

I forgot to indent a message on my note! I'm *note* having a good day ;)

<body>

<figure>
<!-- REMOVE: src is empty just because the test doesn't utilize the full stack, with CopyImagesListener -->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really wanted to document why the src= is empty. Making it ACTUALLY work would be a lot more work to make the test much more complex, and I don't think it's worth it (I'm pretty sure the images and image paths are tested elsewhere).

@weaverryan weaverryan changed the base branch from master to main March 19, 2021 17:47
@@ -12,8 +12,8 @@ <h1 id="toctree"><a class="headerlink" href="#toctree" title="Permalink to this
<div class="toctree-wrapper"><ul class="toctree toctree-level-1 toctree-length-1"><li><a href="file.html">Title</a><ul class="toctree toctree-level-2 toctree-length-1"><li><a href="file.html#sub-title">Sub title</a></li></ul></li></ul></div>
<div class="toctree-wrapper"><ul class="toctree toctree-level-1 toctree-length-1"><li><a href="file.html">Title</a></li></ul></div>
<div class="toctree-wrapper"><ul class="toctree toctree-level-1 toctree-length-1"><li><a href="directory/another_file.html">Another file</a></li></ul></div>
<div class="toctree-wrapper"><ul class="toctree toctree-level-1 toctree-length-3"><li><a href="index.html#toctree">Toctree</a></li><li><a href="directory/another_file.html">Another file</a></li><li><a href="file.html">Title</a><ul class="toctree toctree-level-2 toctree-length-1"><li><a href="file.html#sub-title">Sub title</a></li></ul></li></ul></div>
<div class="toctree-wrapper"><ul class="toctree toctree-level-1 toctree-length-3"><li><a href="file.html">Title</a><ul class="toctree toctree-level-2 toctree-length-1"><li><a href="file.html#sub-title">Sub title</a></li></ul></li><li><a href="index.html#toctree">Toctree</a></li><li><a href="directory/another_file.html">Another file</a></li></ul></div>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caused by fixes upstream

@weaverryan weaverryan merged commit 7cd65bf into main Mar 23, 2021
@weaverryan weaverryan deleted the figure-test-case branch March 23, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Issue with a figure caption
2 participants