Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
// Rest of tests alphabetically
DPIUtilTests.class, //
JSVGRasterizerTest.class, //
OpenShellManyManyTimesTest.class, //
Test_org_eclipse_swt_accessibility_Accessible.class, //
Test_org_eclipse_swt_accessibility_AccessibleControlEvent.class, //
Test_org_eclipse_swt_accessibility_AccessibleEvent.class, //
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*******************************************************************************
* Copyright (c) 2025 Kichwa Coders Canada, Inc.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.swt.tests.junit;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.junit.jupiter.api.RepeatedTest;


public class OpenShellManyManyTimesTest {

@RepeatedTest(value = 1000)
public void test_OpenShell() {
Display display = Display.getCurrent();
if (display == null) {
display = Display.getDefault();
}

Shell shell = new Shell(display);
try {
shell.open();
shell.setFocus();
SwtTestUtil.processEvents();
} finally {
shell.dispose();
}
}
}
Loading