aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
AgeCommit message (Collapse)AuthorFilesLines
2016-12-13Docx reader: Empty header should be list of lists.Jesse Rosenthal2-3/+7
In the past, the docx reader wrote an empty header as an empty list. It should have the same width as a row (and be filled with empty cells). (Note that I've reordered the code here slightly to get rid of a call to `head`. It wasn't unsafe because it tested for null, but it was a bit of a smell.)
2016-12-08Docx reader: Ensure one-row tables don't have header.Jesse Rosenthal2-0/+5
Tables in MS Word are set by default to have special first-row formatting, which pandoc uses to determine whether or not they have a header. This means that one-row tables will, by default, have only a header -- which we imagine is not what people want. This change ensures that a one-row table is not understood to be a header only. Note that this means that it is impossible to produce a header-only table from docx, even though it is legal pandoc. But we believe that in nearly all cases, it will be an accidental (and unwelcome) result Closes #3285.
2016-11-02Docx reader/writer: Update tests for img title and altJesse Rosenthal5-4/+4
Closes #3204
2016-08-29Docx reader: test for nested anchor spans in headerJesse Rosenthal2-0/+10
This ensures that anchor spans in header with content (or with other anchor spans inside) will resolve to links to a header id properly.
2016-08-15Docx writer: test for custom styles.Jesse Rosenthal3-0/+10
This just tests whether a custom style with a recognizable style (italic etc, defined in a reference.docx) will roundtrip back to that format (i.e., whether `<span custom-style="Emphasized">` will roundtrip to `Emph`). The custom styles are defined in the `custom-style-reference.docx` included in the docx dir.
2016-06-23Docx reader: add tests for commentsJesse Rosenthal4-0/+8
We test for comments, using all track-changes options. Note that we should only output comments if `--track-changes=all`. We also test for emitting warnings if there is complicated formatting.
2016-04-16Docx Reader: Tests for track-changes movingJesse Rosenthal4-0/+10
2016-03-16Docx reader: Add test for enumerated headers.Jesse Rosenthal2-0/+4
We don't want them to turn into a list.
2016-02-02Docx reader: Add tests for adjacent hyperlinks.Jesse Rosenthal2-0/+1
2015-12-13Docx reader: image attributesmb214-6/+6
2015-11-19Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane9-17/+17
mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
2015-11-18Docx reader: Add test cases for dummy list items.Jesse Rosenthal4-0/+6
2015-11-14Added test case for links in notes.Jesse Rosenthal2-0/+1
2015-10-04Docx Reader: Create special punctuation testOphir Lifshitz2-0/+2
2015-08-07Updated tests for link attribute changes.mb215-11/+11
2015-08-07Updated tests for image attribute changes.John MacFarlane5-7/+7
2015-07-15Docx Reader: Updated headers testOphir Lifshitz2-1/+9
Replaced styles.xml in headers.docx with pandoc's current styles.xml, which contains styles for Heading 1 through 6. Added Heading 4 through 7 to the test document. Note that Heading 7 is not parsed as a Heading because there is no Heading 7 style.
2015-06-09Fixed tests/docx/links.docx for new url.John MacFarlane1-0/+0
2015-06-09replace old url with pandoc.orgPablo Rodríguez2-2/+2
2015-03-08Lists testNikolay Yakimov1-0/+17
2015-03-03Initial tests for writerNikolay Yakimov4-0/+15
2015-02-21Docx reader: add test for verbatim in sub/superscript.Jesse Rosenthal2-0/+8
2015-02-19Docx reader: Add tests for new list style parsing.Jesse Rosenthal2-0/+6
2015-02-13Docx reader: test lists in table cells.Jesse Rosenthal2-0/+11
2015-01-21Docx Reader: Add test for VML images.Jesse Rosenthal2-0/+4
Since images are often visually (not structurally) placed on the page, people might not always get the results they're looking for here.
2014-11-13Add tests for external links with anchorsCaleb McDaniel2-0/+1
2014-10-25Docx test: Remove Danish header test.Jesse Rosenthal2-10/+0
Redundant, now that we're testing for a more generalized sort of internationalized blocks.
2014-10-25Docx reader: add tests for i18n headers.Jesse Rosenthal2-0/+8
This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
2014-09-05Docx reader: Add test for polyglot headers.Jesse Rosenthal2-0/+10
Only Danish at the moment.
2014-09-04Docx Reader: Add tests for numbered headers.Jesse Rosenthal2-0/+1
2014-08-28Docx reader: update tests for new table behavior.Jesse Rosenthal2-20/+30
2014-08-16Docx reader: Test for character styles.Jesse Rosenthal2-0/+4
2014-08-13Revised tests directory.John MacFarlane52-0/+119
Renamed some tests, introducing subsidiary directories for fb2, docx, epub. Cleaned up tests in cabal file. Combined dokuwiki-writer and dokuwiki_inline_formatting tests.