Skip to content

Commit

Permalink
document last core-js changes, remove HtmxOneNineTenScriptPreProcesso…
Browse files Browse the repository at this point in the history
…r because default parameters are now supported by core-js
  • Loading branch information
rbri committed Sep 22, 2024
1 parent 152560e commit 08bfc11
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 98 deletions.
13 changes: 13 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@

<body>
<release version="4.5.0" date="xxxx, 2024" description="Chrome/Edge 128, Firefox 129, WebWorker, Bugfixes">
<action type="remove" dev="rbri">
Class org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProcessor removed.
This class is no longer required because default parameter support was added to core-js.
</action>
<action type="add" dev="RhinoTeam">
core-js: Support for default parameters added.
</action>
<action type="add" dev="RhinoTeam">
core-js: String.isWellFormed() and String.toWellFormed() added.
</action>
<action type="add" dev="RhinoTeam">
core-js: Support surrogate chars in JSON.stringify().
</action>
<action type="update" dev="rbri">
Upgrade Apache commons-io to 2.17.0.
</action>
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions src/test/java/org/htmlunit/libraries/HtmxTest1x9x10.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package org.htmlunit.libraries;

import org.htmlunit.WebClient;
import org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProcessor;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.BuggyWebDriver;
Expand Down Expand Up @@ -44,7 +43,7 @@ public void htmx() throws Exception {
protected void setupWebClient(final WebClient webClient) {
super.setupWebClient(webClient);

webClient.setScriptPreProcessor(new HtmxOneNineTenScriptPreProcessor());
// there is a script error in sse.js (line 32)
webClient.getOptions().setThrowExceptionOnScriptError(false);
}
}
9 changes: 0 additions & 9 deletions src/test/java/org/htmlunit/libraries/HtmxTest1x9x12.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
package org.htmlunit.libraries;

import org.htmlunit.WebClient;
import org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProcessor;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.BuggyWebDriver;
Expand All @@ -39,11 +37,4 @@ public class HtmxTest1x9x12 extends HtmxTest {
public void htmx() throws Exception {
htmx("htmx-1.9.12");
}

@Override
protected void setupWebClient(final WebClient webClient) {
super.setupWebClient(webClient);

webClient.setScriptPreProcessor(new HtmxOneNineTenScriptPreProcessor());
}
}
9 changes: 0 additions & 9 deletions src/test/java/org/htmlunit/libraries/HtmxTest2x0x0.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
package org.htmlunit.libraries;

import org.htmlunit.WebClient;
import org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProcessor;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
Expand Down Expand Up @@ -43,11 +41,4 @@ public class HtmxTest2x0x0 extends HtmxTest {
public void htmx() throws Exception {
htmx("htmx-2.0.0");
}

@Override
protected void setupWebClient(final WebClient webClient) {
super.setupWebClient(webClient);

webClient.setScriptPreProcessor(new HtmxOneNineTenScriptPreProcessor());
}
}
9 changes: 0 additions & 9 deletions src/test/java/org/htmlunit/libraries/HtmxTest2x0x2.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
package org.htmlunit.libraries;

import org.htmlunit.WebClient;
import org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProcessor;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
Expand Down Expand Up @@ -43,11 +41,4 @@ public class HtmxTest2x0x2 extends HtmxTest {
public void htmx() throws Exception {
htmx("htmx-2.0.2");
}

@Override
protected void setupWebClient(final WebClient webClient) {
super.setupWebClient(webClient);

webClient.setScriptPreProcessor(new HtmxOneNineTenScriptPreProcessor());
}
}

0 comments on commit 08bfc11

Please sign in to comment.