aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-14 11:22:17 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-14 11:22:17 +0000
commit67a6d352cd536526fbd8d5f3d317d7cc9978f69b (patch)
tree0c66fa2609fb9dc3eb88c65a119f6014b56c8e95 /src/test/java
parentbe3797fd23a82fb446ec3913ff1158a323f3146e (diff)
Test that underlining is ignored by default
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java b/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java
index d2dd75f..f6125ed 100644
--- a/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/DocumentConverterTests.java
@@ -17,6 +17,8 @@ import static org.zwobble.mammoth.tests.documents.DocumentElementMakers.*;
import static org.zwobble.mammoth.util.MammothLists.list;
public class DocumentConverterTests {
+ // TODO: styles (paragraph, run, underline, strikethrough)
+
@Test
public void plainParagraphIsConvertedToPlainParagraph() {
assertThat(
@@ -50,6 +52,13 @@ public class DocumentConverterTests {
deepEquals(list(Html.element("em", list(Html.text("Hello"))))));
}
+ @Test
+ public void underliningIsIgnoredByDefault() {
+ assertThat(
+ convertToHtml(make(a(RUN, with(UNDERLINE, true), with(CHILDREN, list(new Text("Hello")))))),
+ deepEquals(list(Html.text("Hello"))));
+ }
+
private List<HtmlNode> convertToHtml(DocumentElement element) {
return DocumentConverter.convertToHtml(element);