Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git
build.gradle
dependencies {
def v_junit = '5.13.4'
+ def v_platform = '1.13.4'
def v_flexmark = '0.64.8'
def v_jackson = '2.19.2'
}
}
+
+ testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${v_junit}"
+ testRuntimeOnly "org.junit.platform:junit-platform-engine:${v_platform}"
+ testRuntimeOnly "org.junit.platform:junit-platform-launcher:${v_platform}"
+ testImplementation 'org.junit.jupiter:junit-jupiter:${v_junit}'
testImplementation "org.junit.jupiter:junit-jupiter-api:${v_junit}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${v_junit}"
testImplementation 'org.testfx:testfx-junit5:4.0.18'
testImplementation 'org.assertj:assertj-core:3.27.4'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
src/test/java/com/keenwrite/io/MediaTypeTest.java
//@formatter:off
final var map = Map.of(
- "https://kroki.io/robots.txt", TEXT_PLAIN,
- "https://place-hold.it/300x500", IMAGE_GIF,
- "https://loremflickr.com/200/300", IMAGE_JPEG,
- "https://upload.wikimedia.org/wikipedia/commons/9/9f/Vimlogo.svg", IMAGE_SVG_XML,
+ "https://placehold.co/robots.txt", TEXT_PLAIN,
+ "https://placehold.co/600x400.gif", IMAGE_GIF,
+ "https://placehold.co/600x400.jpg", IMAGE_JPEG,
+ "https://placehold.co/600x400.svg", IMAGE_SVG_XML,
"https://kroki.io//graphviz/svg/eNpLyUwvSizIUHBXqPZIzcnJ17ULzy_KSanlAgB1EAjQ", IMAGE_SVG_XML
);
src/test/java/com/keenwrite/processors/html/XhtmlProcessorTest.java
import static com.keenwrite.processors.ProcessorContext.builder;
import static com.keenwrite.processors.ProcessorFactory.createProcessors;
+import static com.keenwrite.processors.markdown.extensions.tex.TexNode.HTML_TEX;
import static java.util.Locale.ENGLISH;
import static org.junit.jupiter.api.Assertions.assertEquals;
XHTML_TEX,
"""
- <html><head><title/><meta charset="UTF-8"/><meta content="2" name="count"/></head><body><p>the 👍 emoji</p>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta content="2" name="count"/></head><body><p>the 👍 emoji</p>
</body></html>"""
)

Fixes unit tests

Author DaveJarvis <email>
Date 2025-08-21 23:11:39 GMT-0700
Commit b333c06d967f150234d7c6a99770c629f62be820
Parent 86ab64c
Delta 12 lines added, 6 lines removed, 6-line increase