aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Docx.hs
AgeCommit message (Collapse)AuthorFilesLines
2014-10-25Docx test: Remove Danish header test.Jesse Rosenthal1-4/+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 Rosenthal1-0/+4
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-27Merge pull request #1601 from jkr/windowsfixJohn MacFarlane1-2/+1
Fix path-slashes inside archive for windows
2014-09-05Docx reader: Add test for polyglot headers.Jesse Rosenthal1-0/+4
Only Danish at the moment.
2014-09-04Docx Reader: Add tests for numbered headers.Jesse Rosenthal1-0/+4
2014-09-02Docx reader: Modify mediabag test accordingly.Jesse Rosenthal1-2/+1
2014-08-16Docx reader: Test for character styles.Jesse Rosenthal1-0/+4
2014-08-13Revised tests directory.John MacFarlane1-61/+61
Renamed some tests, introducing subsidiary directories for fb2, docx, epub. Cleaned up tests in cabal file. Combined dokuwiki-writer and dokuwiki_inline_formatting tests.
2014-08-11Docx: Add dropcap tests.Jesse Rosenthal1-4/+6
2014-08-07Docx reader: Test inline image code.Jesse Rosenthal1-1/+5
2014-07-31Docx tests: rewrite mediabag tests.Jesse Rosenthal1-19/+40
This will allow us to test the whole mediabag (making sure, for example, that images are added with the correct keys) instead of just individual extracted images. We compare each entry in the media bag to an image extracted on the fly from the docx. As a result, we only need one file to test with. The image in the current tests was also replaced with a smaller one.
2014-07-31New module, Text.Pandoc.MediaBag.John MacFarlane1-1/+1
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
2014-07-31Made MediaBag a newtype, and added mime type information to media.John MacFarlane1-2/+3
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
2014-07-30Docx test: Test image from media bag.Jesse Rosenthal1-0/+7
2014-07-30Docx tests: Added media test comparison function.Jesse Rosenthal1-0/+19
Also tell pandoc.cabal that we'll be needing base64, since we want to compare strings here.
2014-07-30Docx reader: change tests to make use of media bag.Jesse Rosenthal1-1/+2
2014-07-29Add and update docx tests in pandoc.cabal.Jesse Rosenthal1-4/+0
2014-07-29Docx reader: Make metavalues out of styled paragraphs.Jesse Rosenthal1-0/+15
This will make paragraphs styled with `Author`, `Title`, `Subtitle`, `Date`, and `Abstract` into pandoc metavalues, rather than text. The implementation only takes those elements from the beginning of the document (ignoring empty paragraphs). Multiple paragraphs in the `Author` style will be made into a metaList, one paragraph per item. Hard linebreaks (shift-return) in the paragraph will be maintained, and can be used for institution, email, etc.
2014-07-15Docx reader: Add testJesse Rosenthal1-0/+4
Test auto ident header anchors with pandoc-generated pandoc.
2014-06-29Docx reader: Add tests for hanging indent handline.Jesse Rosenthal1-0/+4
We want to treat it as a plain paragraph if the hanging amount is greater to or equal to the left indent---i.e., if the first line has zero indentation. But we still want it to be a block quote if it starts to the right of the margin. Someone might format verse with wrapping lines with a hanging indent, for example.
2014-06-25Track changes tests.Jesse Rosenthal1-4/+28
2014-06-25Docx reader: Add tests for basic track changesJesse Rosenthal1-0/+10
This is what seems like the sensible default: read in insertions, and ignore deletions. In the future, it would be good if options were available for either taking in deletions or keeping both in some scriptable format.
2014-06-24Docx Reader: add failing defintion list tests.Jesse Rosenthal1-0/+4
2014-06-24Docx reader: add failing tests for inline code and code blocks.Jesse Rosenthal1-0/+9
2014-06-23Add test for correctly trimming spaces in formatting.Jesse Rosenthal1-0/+4
This used to be fixed in the tree-walking. We need to make sure we're doing it right now.
2014-06-22Docx reader tests: add tests for normalization deep in blocks.Jesse Rosenthal1-0/+4
2014-06-22Add normalization test.Jesse Rosenthal1-0/+4
Add torture-test for new normalization functions. One problem that this test demonstrates is that word has a tendency to turn off formatting at a space, and then turn it back on after. I'm not sure yet whether this is something we should fix.
2014-06-20Docx reader tests: Introduce NoNormPandoc type.Jesse Rosenthal1-2/+27
This is just a wrapper around Pandoc that doesn't normalize with `toString`. We want to make sure that our own normalization process works. If, in the future, we are able to hook into the builder's normalization, this will be removed.
2014-06-19Add tabs tests.Jesse Rosenthal1-1/+6
2014-06-19Add ReaderOptions to the docx testsJesse Rosenthal1-8/+11
This will allow for testing different media embedding (in addition to any other applicable options.)
2014-06-16Naming: Use Docx instead of DocX.John MacFarlane1-0/+68
For consistency with the existing writer.