From 3d573827230e7a750c002cf416cf9231161dd9b3 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Tue, 19 Apr 2022 13:11:38 +0300 Subject: Update Jsoup to 1.14.3 (#2448) * Update Jsoup to 1.14.3 * Fix Jsoup API breaking changes after the update * Fix new Qodana inspections * Replace IllegalStateException with more appropriate NoSuchElementException --- plugins/mathjax/src/test/kotlin/MathjaxPluginTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mathjax/src') diff --git a/plugins/mathjax/src/test/kotlin/MathjaxPluginTest.kt b/plugins/mathjax/src/test/kotlin/MathjaxPluginTest.kt index a354365b..0f713708 100644 --- a/plugins/mathjax/src/test/kotlin/MathjaxPluginTest.kt +++ b/plugins/mathjax/src/test/kotlin/MathjaxPluginTest.kt @@ -34,7 +34,7 @@ class MathjaxPluginTest : BaseAbstractTest() { ) { renderingStage = { _, _ -> Jsoup - .parse(writerPlugin.writer.contents["root/example/test.html"]) + .parse(writerPlugin.writer.contents.getValue("root/example/test.html")) .head() .select("link, script") .let { @@ -72,7 +72,7 @@ class MathjaxPluginTest : BaseAbstractTest() { pluginOverrides = listOf(writerPlugin, MathjaxPlugin()) ) { renderingStage = { _, _ -> - val parsed = Jsoup.parse(writerPlugin.writer.contents["root/example/test.html"]) + val parsed = Jsoup.parse(writerPlugin.writer.contents.getValue("root/example/test.html")) // Ensure the MathJax CDN is loaded assert(parsed.select("link, script").`is`("[href=$LIB_PATH], [src=$LIB_PATH]")) -- cgit