You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser tests were only executed for the default configuration of a
system's browser using the SWT.NONE flag. Other configurations, such as
using the Edge browser in Windows, were not tested. A parameterization
has been added to allow other configurations to be tested.
This change adds Edge to the test configurations executed for the
browser. This allows to detect regressions when performing future
changes to the Edge browser.
Fixes#671
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_Browser.java
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@
78
78
importorg.eclipse.swt.widgets.Display;
79
79
importorg.eclipse.swt.widgets.Shell;
80
80
importorg.junit.Before;
81
+
importorg.junit.BeforeClass;
81
82
importorg.junit.FixMethodOrder;
82
83
importorg.junit.Rule;
83
84
importorg.junit.Test;
@@ -145,7 +146,7 @@ public static Collection<Object[]> browserFlagsToTest() {
145
146
if (SwtTestUtil.isWindows) {
146
147
// NOTE: This is currently disabled due to test issues in the CI
147
148
// Execute Edge tests first, because IE starts some OS timer that conflicts with Edge event handling
148
-
// browserFlags.add(0, new Object[] {SWT.EDGE});
149
+
browserFlags.add(0, newObject[] {SWT.EDGE});
149
150
}
150
151
browserFlags.add(newObject[] {SWT.NONE});
151
152
returnbrowserFlags;
@@ -155,6 +156,16 @@ public Test_org_eclipse_swt_browser_Browser(int swtBrowserSettings) {
155
156
this.swtBrowserSettings = swtBrowserSettings;
156
157
}
157
158
159
+
@BeforeClass
160
+
publicstaticvoidsetupEdgeEnvironment() {
161
+
// initialize Edge environment before any test runs to isolate environment setup
0 commit comments