Skip to content

Commit 4631dd7

Browse files
authored
Merge branch 'trunk' into jspecify-net
2 parents de736eb + 1300833 commit 4631dd7

File tree

10 files changed

+10
-30
lines changed

10 files changed

+10
-30
lines changed

.bazelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ test --test_env=FIREFOX_NIGHTLY_BINARY
8787
test --test_env=GITHUB_ACTIONS
8888
test --test_env=MOZ_HEADLESS
8989
test --test_env=SELENIUM_BROWSER
90-
test --test_env=TRAVIS
9190
test --test_env=PYTHON_VERSION
9291
test --test_env=SE_AVOID_STATS=true
9392

java/test/org/openqa/selenium/ProxySettingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void canConfigureProxyThroughPACFile() throws URISyntaxException, Interru
110110
@Ignore(SAFARI)
111111
@NoDriverBeforeTest
112112
@NoDriverAfterTest
113-
@Ignore(value = FIREFOX, travis = true)
113+
@Ignore(value = FIREFOX, reason = "Flaky")
114114
@Ignore(value = CHROME, reason = "Flaky")
115115
@Ignore(value = EDGE, reason = "Flaky")
116116
public void canUsePACThatOnlyProxiesCertainHosts()

java/test/org/openqa/selenium/SlowLoadingPageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void testShouldBlockUntilIFramesAreLoaded() {
4545
}
4646

4747
@Test
48-
@Ignore(value = CHROME, travis = true, gitHubActions = true)
48+
@Ignore(value = CHROME, gitHubActions = true)
4949
@Ignore(value = EDGE)
5050
public void testRefreshShouldBlockUntilPageLoads() {
5151
long start = System.currentTimeMillis();

java/test/org/openqa/selenium/WindowTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ void testSetsThePositionOfTheCurrentWindow() {
115115
}
116116

117117
@Test
118-
@Ignore(value = CHROME, travis = true)
119118
@Ignore(value = FIREFOX, gitHubActions = true)
120119
public void testCanMaximizeTheWindow() {
121120
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
@@ -159,7 +158,7 @@ public void testCanMaximizeTheWindowFromIframe() {
159158
}
160159

161160
@Test
162-
@Ignore(travis = true, gitHubActions = true)
161+
@Ignore(gitHubActions = true)
163162
public void canMinimizeTheWindow() {
164163
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
165164
// though others aren't defined in org.openqa.selenium.Platform).
@@ -173,7 +172,6 @@ public void canMinimizeTheWindow() {
173172
}
174173

175174
@Test
176-
@Ignore(value = CHROME, travis = true)
177175
@Ignore(value = FIREFOX, gitHubActions = true)
178176
@Ignore(SAFARI)
179177
public void canFullscreenTheWindow() {
@@ -191,7 +189,6 @@ public void canFullscreenTheWindow() {
191189

192190
@SwitchToTopAfterTest
193191
@Test
194-
@Ignore(value = CHROME, travis = true)
195192
@Ignore(value = FIREFOX, gitHubActions = true)
196193
@Ignore(SAFARI)
197194
public void canFullscreenTheWindowFromFrame() {
@@ -208,7 +205,6 @@ public void canFullscreenTheWindowFromFrame() {
208205

209206
@SwitchToTopAfterTest
210207
@Test
211-
@Ignore(value = CHROME, travis = true)
212208
@Ignore(value = FIREFOX, gitHubActions = true)
213209
@Ignore(SAFARI)
214210
public void canFullscreenTheWindowFromIframe() {

java/test/org/openqa/selenium/interactions/CombinedInputActionsTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public void testMultipleInputs() {
133133

134134
@Test
135135
@Ignore(IE)
136-
@Ignore(value = FIREFOX, travis = true)
137136
public void testControlClickingOnMultiSelectionList() {
138137
assumeFalse(
139138
getEffectivePlatform(driver).is(Platform.MAC), "FIXME: macs don't have CONTROL key");
@@ -163,7 +162,6 @@ public void testControlClickingOnMultiSelectionList() {
163162

164163
@Test
165164
@Ignore(IE)
166-
@Ignore(value = FIREFOX, travis = true)
167165
public void testControlClickingOnCustomMultiSelectionList() {
168166
driver.get(pages.selectableItemsPage);
169167
Keys key = getEffectivePlatform(driver).is(Platform.MAC) ? Keys.COMMAND : Keys.CONTROL;
@@ -196,7 +194,6 @@ public void testControlClickingOnCustomMultiSelectionList() {
196194

197195
@Test
198196
@Ignore(IE)
199-
@Ignore(value = FIREFOX, travis = true)
200197
public void testControlClickingWithMultiplePointers() {
201198
driver.get(pages.selectableItemsPage);
202199

java/test/org/openqa/selenium/javascript/ClosureTestStatement.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package org.openqa.selenium.javascript;
1919

2020
import static org.junit.jupiter.api.Assertions.fail;
21-
import static org.openqa.selenium.testing.TestUtilities.isOnTravis;
2221

2322
import com.google.common.base.Stopwatch;
2423
import java.net.URL;
@@ -60,13 +59,11 @@ public void evaluate() throws Throwable {
6059

6160
WebDriver driver = driverSupplier.get();
6261

63-
if (!isOnTravis()) {
64-
// Attempt to make the window as big as possible.
65-
try {
66-
driver.manage().window().maximize();
67-
} catch (RuntimeException ignored) {
68-
// We tried.
69-
}
62+
// Attempt to make the window as big as possible.
63+
try {
64+
driver.manage().window().maximize();
65+
} catch (RuntimeException ignored) {
66+
// We tried.
7067
}
7168

7269
JavascriptExecutor executor = (JavascriptExecutor) driver;

java/test/org/openqa/selenium/testing/Ignore.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@
3535

3636
String issue() default "";
3737

38-
boolean travis() default false;
39-
4038
boolean gitHubActions() default false;
4139
}

java/test/org/openqa/selenium/testing/IgnoreComparator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ public boolean shouldIgnore(Stream<Ignore> ignoreList) {
5252
return ignoreList.anyMatch(
5353
driver ->
5454
(ignored.contains(driver.value()) || driver.value() == Browser.ALL)
55-
&& ((!driver.travis() || TestUtilities.isOnTravis())
56-
|| (!driver.gitHubActions() || TestUtilities.isOnGitHubActions()))
55+
&& (!driver.gitHubActions() || TestUtilities.isOnGitHubActions())
5756
&& isOpen(driver.issue()));
5857
}
5958

java/test/org/openqa/selenium/testing/TestUtilities.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,6 @@ public static boolean isLocal() {
162162
|| Boolean.getBoolean("selenium.browser.grid"));
163163
}
164164

165-
public static boolean isOnTravis() {
166-
return Boolean.parseBoolean(System.getenv("TRAVIS"));
167-
}
168-
169165
public static boolean isOnGitHubActions() {
170166
return Boolean.parseBoolean(System.getenv("GITHUB_ACTIONS"));
171167
}

rb/lib/selenium/webdriver/common/platform.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def os
5151
end
5252

5353
def ci
54-
if ENV['TRAVIS']
55-
:travis
56-
elsif ENV['JENKINS']
54+
if ENV['JENKINS']
5755
:jenkins
5856
elsif ENV['APPVEYOR']
5957
:appveyor

0 commit comments

Comments
 (0)