We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35119f0 commit e580df7Copy full SHA for e580df7
tests/org.eclipse.swt.tests.win32/JUnit Tests/org/eclipse/swt/tests/win32/KeyboardLayoutTest.java
@@ -360,6 +360,11 @@ protected void ensureShellFocused() {
360
// Note that `Shell.isFocusControl()` still returns `true` even if a
361
// different app is focused
362
if (shell.handle != OS.GetForegroundWindow()) {
363
+ System.out.println("handle of current shell: " + OS.GetForegroundWindow());
364
+ System.out.println("handle of tracked shell: " + shell.handle);
365
+ for (Shell shell : display.getShells()) {
366
+ System.out.println(shell.handle + ": " + shell.toString());
367
+ }
368
fail("Test Shell lost focus (did you use keyboard/mouse while the test was running?)");
369
}
370
0 commit comments