Skip to content

Commit

Permalink
Browser Tests: Try to stabilize test_TabTraversalOutOfBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
sratz committed Dec 17, 2024
1 parent 603eecd commit e4a4d28
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2638,8 +2638,7 @@ public void completed(ProgressEvent event) {
browser2.dispose();
}

//@Test
// FIXME This test should at least work for Edge on Windows.
@Test
public void test_TabTraversalOutOfBrowser() {
assumeFalse("Not currently working on macOS, see https://github.com/eclipse-platform/eclipse.platform.swt/issues/1644", SwtTestUtil.isCocoa);
assumeFalse("Not currently working on Linux, see https://github.com/eclipse-platform/eclipse.platform.swt/issues/1644", SwtTestUtil.isGTK);
Expand All @@ -2665,6 +2664,8 @@ public void test_TabTraversalOutOfBrowser() {
// send tab key via low-level event -> focus should move to Text control
AtomicBoolean textGainedFocus = new AtomicBoolean(false);
text.addFocusListener(FocusListener.focusGainedAdapter(e -> textGainedFocus.set(true)));
// make sure the browser's shell is active
browser.getShell().forceActive();
Event event = new Event();
event.type = SWT.KeyDown;
event.keyCode = SWT.TAB;
Expand Down

0 comments on commit e4a4d28

Please sign in to comment.