Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2018-09-20 01:59:13 -0400
committerEd Merks2018-09-20 05:36:32 -0400
commit76032e9506b6cedc19d4e13d0c940f40dd3924fd (patch)
tree1d7ca94051f71b333aa5c13d5d1b2b8f12583763
parent9baa063b6c861239dc682554bdc60e80a480c00f (diff)
downloadeclipse.platform.swt-76032e9506b6cedc19d4e13d0c940f40dd3924fd.tar.gz
eclipse.platform.swt-76032e9506b6cedc19d4e13d0c940f40dd3924fd.tar.xz
eclipse.platform.swt-76032e9506b6cedc19d4e13d0c940f40dd3924fd.zip
Bug 539274 - Test_org_eclipse_swt_widgets_Shell.test_activateEventSend()
doesn't compile on Windows Fix regression test Test_org_eclipse_swt_widgets_Shell.test_activateEventSend() so that it compiles on all platforms Change-Id: Ieb701f04d2fb33fe265b19499eb127531691ac58 Signed-off-by: Ed Merks <ed.merks@gmail.com>
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
index 21e20a044b..0a599557f9 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
@@ -32,7 +32,6 @@ import org.eclipse.swt.events.ShellListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.graphics.Region;
-import org.eclipse.swt.internal.gtk.OS;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
@@ -674,7 +673,7 @@ public void test_setBoundsLorg_eclipse_swt_graphics_Rectangle() {
*/
@Test
public void test_activateEventSend() {
- if (SwtTestUtil.isGTK && OS.isX11()) {
+ if (SwtTestUtil.isGTK && SwtTestUtil.isX11) {
Shell testShell = new Shell(shell, SWT.SHELL_TRIM);
testShell.addListener(SWT.Activate, e -> {
listenerCalled = true;

Back to the top