diff options
author | Alexander Kurtakov | 2018-11-06 07:11:35 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-11-06 07:11:35 +0000 |
commit | 9c0b8f793f58b36f018e36b66ed3a4b9e0f63a69 (patch) | |
tree | 0ff8e468267efd4a95c191be29f5cc0b7662f83d /tests | |
parent | 21cc4b9088d9ec48d3f6a7daed6e914dc2964aec (diff) | |
download | eclipse.platform.swt-9c0b8f793f58b36f018e36b66ed3a4b9e0f63a69.tar.gz eclipse.platform.swt-9c0b8f793f58b36f018e36b66ed3a4b9e0f63a69.tar.xz eclipse.platform.swt-9c0b8f793f58b36f018e36b66ed3a4b9e0f63a69.zip |
Remove reparentablePlatform list from SwtTestUtil.
All supported platforms are reparentable.
Change-Id: Iff339dfcd23fa51c7871026fd4fff1616f5753dc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'tests')
2 files changed, 1 insertions, 12 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtTestUtil.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtTestUtil.java index 24d62cd985..bc78b2fbc5 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtTestUtil.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtTestUtil.java @@ -60,9 +60,6 @@ public class SwtTestUtil { public static String[] invalidImageFilenames = new String[] {"corrupt", "corruptBadBitDepth.png"}; public static String[] transparentImageFilenames = new String[] {"transparent.png"}; - // specify reparentable platforms - public static String[] reparentablePlatforms = new String[] {"win32", "gtk", "cocoa"}; - public static final String testFontName; // isWindows refers to windows platform, i.e. win32 windowing system; see also isWindowsOS public final static boolean isWindows = SWT.getPlatform().startsWith("win32"); @@ -103,14 +100,6 @@ public static void assertSWTProblem(String message, int expectedCode, Throwable } } -protected static boolean isReparentablePlatform() { - String platform = SWT.getPlatform(); - for (int i=0; i<reparentablePlatforms.length; i++) { - if (reparentablePlatforms[i].equals(platform)) return true; - } - return false; -} - public static boolean isBidi() { return true; } diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java index 0c1459c130..6ec23321b3 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java @@ -525,7 +525,7 @@ public void test_isFocusControl() { } @Test public void test_isReparentable() { - assertEquals ("isReparentable", control.isReparentable(), SwtTestUtil.isReparentablePlatform()); + assertTrue ("isReparentable", control.isReparentable()); } @Test public void test_isVisible() { |