Skip to content

Commit b9da659

Browse files
committed
cleanup
1 parent a36b7c2 commit b9da659

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
<body>
1010
<release version="4.14.0" date="July xx, 2025" description="Chrome/Edge 137, Firefox 139, Bugfixes">
11+
<action type="update" dev="rbri">
12+
Test suite updated to junit 5 and cleaned up.
13+
</action>
1114
<action type="add" dev="rbri">
1215
The hidden attribute now supports the 'until-found' value.
1316
</action>

src/test/java/org/htmlunit/junit/SetExpectedAlertsBeforeTestExecutionCallback.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ public void beforeTestExecution(final ExtensionContext context) throws Exception
6666
private static void setAlerts(final WebTestCase webTestCase, final Method method) {
6767
final Alerts alerts = method.getAnnotation(Alerts.class);
6868
final BrowserVersion browserVersion = webTestCase.getBrowserVersion();
69-
boolean realBrowser = false;
70-
if (webTestCase instanceof WebDriverTestCase) {
71-
realBrowser = ((WebDriverTestCase) webTestCase).useRealBrowser();
72-
}
7369

7470
String[] expectedAlerts = {};
7571
if (alerts != null) {
@@ -93,6 +89,10 @@ else if (browserVersion == BrowserVersion.CHROME) {
9389
}
9490
}
9591

92+
boolean realBrowser = false;
93+
if (webTestCase instanceof WebDriverTestCase) {
94+
realBrowser = ((WebDriverTestCase) webTestCase).useRealBrowser();
95+
}
9696
if (realBrowser) {
9797
final BuggyWebDriver buggyWebDriver = method.getAnnotation(BuggyWebDriver.class);
9898
if (buggyWebDriver != null) {

src/test/java/org/htmlunit/junit/annotation/TestedBrowser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public enum TestedBrowser {
2626
/** Latest version of Chrome. */
2727
CHROME,
2828

29-
/** Edge. */
29+
/** Latest version of Edge. */
3030
EDGE,
3131

32-
/** Firefox. */
32+
/** Latest version of Firefox. */
3333
FF,
3434

35-
/** Firefox ESR. */
35+
/** Latest version of Firefox ESR. */
3636
FF_ESR
3737
}

0 commit comments

Comments
 (0)