aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-21 08:49:59 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-21 08:49:59 +0000
commit9a7094b9df826a856cb73e01203aedfec30e306f (patch)
tree23a457f9e6deb6324cea24f2700ab0e5b2801bfb /src/test/java/org/zwobble/mammoth
parent219012a4d37e3f950181b215d8daa8c950e3abf5 (diff)
Add end-to-end test for tables
Diffstat (limited to 'src/test/java/org/zwobble/mammoth')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/MammothTests.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
index 26e802b..a13e7ef 100644
--- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
@@ -47,6 +47,19 @@ public class MammothTests {
}
@Test
+ public void wordTablesAreConvertedToHtmlTables() {
+ assertThat(
+ convertToHtml("tables.docx"),
+ deepEquals(success(
+ "<p>Above</p>" +
+ "<table>" +
+ "<tr><td><p>Top left</p></td><td><p>Top right</p></td></tr>" +
+ "<tr><td><p>Bottom left</p></td><td><p>Bottom right</p></td></tr>" +
+ "</table>" +
+ "<p>Below</p>")));
+ }
+
+ @Test
public void inlineImagesAreIncludedInOutput() {
assertThat(
convertToHtml("tiny-picture.docx"),