Skip to content

Commit bd16504

Browse files
committed
[Win32] Remove WebView environment initialization in Edge browser tests
The browser tests contain a setup method that creates and directly disposes a browser before the first test method when running on Windows. It was supposed to trigger the Edge environment setup performed when creating the Edge browser instance. This was originally introduced for testing purposes because of tests sometimes running into timeouts. On the contrary, it has a side effect on the first test to be executed, as there is no proper cleanup like after all other tests is performed after this initial setup method, e.g., the event loop is not spinned to process pending events. This change removes that additional setup/preparation logic.
1 parent 9aa7973 commit bd16504

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_Browser.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
import org.eclipse.swt.widgets.Shell;
8282
import org.eclipse.swt.widgets.Text;
8383
import org.junit.Before;
84-
import org.junit.BeforeClass;
8584
import org.junit.FixMethodOrder;
8685
import org.junit.Ignore;
8786
import org.junit.Rule;
@@ -158,16 +157,6 @@ public Test_org_eclipse_swt_browser_Browser(int swtBrowserSettings) {
158157
this.swtBrowserSettings = swtBrowserSettings;
159158
}
160159

161-
@BeforeClass
162-
public static void setupEdgeEnvironment() {
163-
// initialize Edge environment before any test runs to isolate environment setup
164-
if (SwtTestUtil.isWindows) {
165-
Shell shell = new Shell();
166-
new Browser(shell, SWT.EDGE);
167-
shell.dispose();
168-
}
169-
}
170-
171160
@Override
172161
@Before
173162
public void setUp() {

0 commit comments

Comments
 (0)