Skip to content

Commit a9de50d

Browse files
committed
Chrome/Edge 140
1 parent a3f9a07 commit a9de50d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/test/java/org/htmlunit/ExternalTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.htmlunit.html.HtmlPage;
3838
import org.htmlunit.xml.XmlPage;
3939
import org.junit.jupiter.api.Assertions;
40-
import org.junit.jupiter.api.Disabled;
4140
import org.junit.jupiter.api.Test;
4241

4342
/**
@@ -53,11 +52,11 @@ public class ExternalTest {
5352
static String MAVEN_REPO_URL_ = "https://repo1.maven.org/maven2/";
5453

5554
/** Chrome driver. */
56-
static String CHROME_DRIVER_ = "139.0.7258";
55+
static String CHROME_DRIVER_ = "140.0.7339";
5756
static String CHROME_DRIVER_URL_ =
5857
"https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json";
5958

60-
static String EDGE_DRIVER_ = "139.0.3405";
59+
static String EDGE_DRIVER_ = "140.0.3485";
6160
static String EDGE_DRIVER_URL_ = "https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/";
6261

6362
/** Gecko driver. */
@@ -179,7 +178,7 @@ public void assertChromeDriver() throws Exception {
179178
* @throws Exception if an error occurs
180179
*/
181180
@Test
182-
@Disabled("javascript errors")
181+
// @Disabled("javascript errors")
183182
public void assertEdgeDriver() throws Exception {
184183
try (WebClient webClient = new WebClient(BrowserVersion.FIREFOX)) {
185184
webClient.getOptions().setThrowExceptionOnScriptError(false);

src/test/java/org/htmlunit/javascript/host/worker/WorkerNavigatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public void appName() throws Exception {
8080
*/
8181
@Test
8282
@Alerts(CHROME = "5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
83-
+ "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36",
83+
+ "(KHTML,\\slike\\sGecko)\\sChrome/140.0.0.0\\sSafari/537.36",
8484
EDGE = "5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
85-
+ "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36\\sEdg/139.0.0.0",
85+
+ "(KHTML,\\slike\\sGecko)\\sChrome/140.0.0.0\\sSafari/537.36\\sEdg/140.0.0.0",
8686
FF = "5.0\\s(Windows)",
8787
FF_ESR = "5.0\\s(Windows)")
8888
public void appVersion() throws Exception {
@@ -163,9 +163,9 @@ public void product() throws Exception {
163163
*/
164164
@Test
165165
@Alerts(CHROME = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
166-
+ "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36",
166+
+ "(KHTML,\\slike\\sGecko)\\sChrome/140.0.0.0\\sSafari/537.36",
167167
EDGE = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
168-
+ "(KHTML,\\slike\\sGecko)\\sChrome/139.0.0.0\\sSafari/537.36\\sEdg/139.0.0.0",
168+
+ "(KHTML,\\slike\\sGecko)\\sChrome/140.0.0.0\\sSafari/537.36\\sEdg/140.0.0.0",
169169
FF = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:142.0)\\sGecko/20100101\\sFirefox/142.0",
170170
FF_ESR = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:128.0)\\sGecko/20100101\\sFirefox/128.0")
171171
public void userAgent() throws Exception {

0 commit comments

Comments
 (0)