Skip to content

Commit

Permalink
doxygen: test case for a trailing whitespace between sections.
Browse files Browse the repository at this point in the history
Trying to reproduce #47 and
failing.
  • Loading branch information
mosra committed Jun 4, 2018
1 parent 9d946a6 commit d22228d
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doxygen/test/contents_blocks_trailing_whitespace/Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
INPUT = File.h
QUIET = YES
GENERATE_HTML = NO
GENERATE_LATEX = NO
GENERATE_XML = YES
XML_PROGRAMLISTING = NO

M_PAGE_FINE_PRINT =
M_THEME_COLOR =
M_FAVICON =
M_LINKS_NAVBAR1 =
M_LINKS_NAVBAR2 =
M_SEARCH_DISABLED = YES
19 changes: 19 additions & 0 deletions doxygen/test/contents_blocks_trailing_whitespace/File.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** \file
* \brief A file
*/

/// \brief Should this task be batched together with other matching tasks, where possible?
///
/// \remarks If this is non-zero, the renderer groups the task together with other tasks with a matching
/// BatchID and draws them in batched mode, so that it can submit them all with one Draw
/// call to the underlying graphics API.
///
/// \remarks The BatchID should be the same for all RenderTasks setting the same state in Bind.
/// The only thing that should differ between them is the BatchKey. Recommended way of
/// generating this key is to use a hash of the memory addresses of all the bindables
/// (buffers, resources) you set during Bind (See Material.cpp for an example of this).
///
/// \remarks Only applies to geometry layers.
void foo();

// kate: replace-trailing-space-save off;
61 changes: 61 additions & 0 deletions doxygen/test/contents_blocks_trailing_whitespace/File_8h.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions doxygen/test/test_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ def test(self):
self.assertEqual(*self.actual_expected_contents('File_8h.html'))
self.assertEqual(*self.actual_expected_contents('old.html'))

class BlocksTrailingWhitespace(IntegrationTestCase):
def __init__(self, *args, **kwargs):
super().__init__(__file__, 'blocks_trailing_whitespace', *args, **kwargs)

def test(self):
self.run_dox2html5(wildcard='*.xml')
self.assertEqual(*self.actual_expected_contents('File_8h.html'))

class Code(IntegrationTestCase):
def __init__(self, *args, **kwargs):
super().__init__(__file__, 'code', *args, **kwargs)
Expand Down

0 comments on commit d22228d

Please sign in to comment.