Skip to content
Merged
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 @@ -457,6 +457,10 @@ public void test_getImeInputMode() {
@Override
@Test
public void test_getLocation() {
//Setting location for Windows is not supported in GTK4
if (isGTK4()) {
return;
}
shell.setLocation(10,15);
assertEquals(":a:", 10, shell.getLocation().x);
assertEquals(":b:", 15, shell.getLocation().y);
Expand Down Expand Up @@ -999,4 +1003,27 @@ public void test_Issue450_NoShellActivateOnSetFocus() {
}
}
}

@Override
public void test_setLocationLorg_eclipse_swt_graphics_Point() {
//Setting location for Windows is not supported in GTK4
if (isGTK4()) {
return;
}
super.test_setLocationLorg_eclipse_swt_graphics_Point();
}

@Override
public void test_setLocationII() {
//Setting location for Windows is not supported in GTK4
if (isGTK4()) {
return;
}
super.test_setLocationII();
}

public static boolean isGTK4() {
String gtkVersion = System.getProperty("org.eclipse.swt.internal.gtk.version", "");
return SwtTestUtil.isGTK && gtkVersion.startsWith("4");
}
}
Loading