Skip to content

Commit 29d5466

Browse files
committed
Simplify browser regression test for unused timers in Edge #2806
The regression test added for an issue with the Edge implementation running out of handles because of too many timer being instantiated currently creates thousands of browser functions. The actual issue occurs because of too many calls to processOSMessagesUntil(), each creating a timer. This already happens when accessing the WebView instance through the setText() call inside the test. Thus, the creation of browser functions in the test is obsolete, which is why this change removes it. Contributes to #2806
1 parent 1b54d33 commit 29d5466

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2987,7 +2987,6 @@ public void test_TabTraversalOutOfBrowser() {
29872987
public void test_TimerRegression_Issue2806() {
29882988
for (int i = 0; i < 10000; i++) {
29892989
browser.setText("Iteration " + i);
2990-
new BrowserFunction(browser, "name");
29912990
}
29922991
new Composite(shell, SWT.NONE);
29932992
processUiEvents();

0 commit comments

Comments
 (0)