From 9f4888e94c516e3248e4b86cbcbf9b116cd95419 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Fri, 19 Jan 2024 19:08:33 +0100 Subject: [PATCH] "text/javascript" is the correct mime type; "application/javascript" is obsolete (issue #710) --- src/test/java/org/htmlunit/IncorrectnessListenerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/htmlunit/IncorrectnessListenerTest.java b/src/test/java/org/htmlunit/IncorrectnessListenerTest.java index f66d25425fb..f1e355df3bd 100644 --- a/src/test/java/org/htmlunit/IncorrectnessListenerTest.java +++ b/src/test/java/org/htmlunit/IncorrectnessListenerTest.java @@ -60,7 +60,8 @@ public void notify(final String message, final Object origin) { webClient.getPage(URL_FIRST); final String[] expectedIncorrectness = { - "Obsolete content type encountered: 'application/x-javascript'." + "Obsolete content type encountered: 'application/x-javascript' for " + + "remotely loaded JavaScript element at 'http://localhost:22222/script.js'." }; assertEquals(expectedIncorrectness, collectedIncorrectness); }