Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-02-06 12:42:38 +0000
committerAlexander Kurtakov2014-02-06 12:42:38 +0000
commitc8c119fd16180abe13c2aa9f77a90156739122ad (patch)
tree85bbad28a14b183549353c2315c761e66e458276 /tests
parent3117835d554b06f3bf8aa67e02601babe780768b (diff)
downloadeclipse.platform.swt-c8c119fd16180abe13c2aa9f77a90156739122ad.tar.gz
eclipse.platform.swt-c8c119fd16180abe13c2aa9f77a90156739122ad.tar.xz
eclipse.platform.swt-c8c119fd16180abe13c2aa9f77a90156739122ad.zip
Bug 427534 - Move away from excludesList in All[WS]Tests
Remove All[Carbon|Motif]Tests as they haven't been used in quite some time. If one wants to run tests on these WSs please run AllTests and help improving the individual test cases or fix the port. AllCarbonTests was mentioned in test.xml but tests are never run on carbon so condition was never met -> removed. Change-Id: I78d4f29fc193e4caa92e77f0b5ef0d7e63f644b7 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllCarbonTests.java97
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllMotifTests.java64
-rw-r--r--tests/org.eclipse.swt.tests/test.xml3
3 files changed, 0 insertions, 164 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllCarbonTests.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllCarbonTests.java
deleted file mode 100644
index e8dda1ccb5..0000000000
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllCarbonTests.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.junit;
-
-
-import junit.framework.*;
-import junit.textui.*;
-
-/**
- * Suite for running all SWT test cases.
- */
-public class AllCarbonTests extends TestSuite {
-
-/**
- * Tests not run because they consistently fail
- */
-static String[] excludeTests = {
- "test_postLorg_eclipse_swt_widgets_Event(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Display)",
- "test_ConstructorLorg_eclipse_swt_graphics_Device$Lorg_eclipse_swt_graphics_FontData(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Font)",
- "test_getBoundsI(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TableItem)",
- "test_getBoundsI(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TreeItem)",
- "test_getBounds(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TreeItem)",
- "test_appendLjava_lang_String(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_getTopPixel(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_getTopIndex(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_clearSelection(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_copy(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_cut(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_getSelection(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_getSelectionIndex(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_paste(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_setSelectionLorg_eclipse_swt_graphics_Point(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo)",
- "test_setSelectionEmpty(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TabFolder)",
- "Browser4(org.eclipse.swt.tests.junit.browser.Test_BrowserSuite)",
- "Browser5(org.eclipse.swt.tests.junit.browser.Test_BrowserSuite)",
- //
- "test_copy(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_cut(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_paste(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_selectAll(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text)",
- "test_copy(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
- "test_cut(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
- "test_invokeActionI(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
- "test_paste(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
-
- // The following tests (cut/copy/paste) fail during the build process. They do not fail locally.
- "test_copy(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_CCombo)",
- "test_cut(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_CCombo)",
- "test_paste(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_CCombo)",
-
- // TextLayout bugs
- "test_getLevel(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getLineOffsets(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getLineBounds(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getLocation(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getNextOffset(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getNextOffset2(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getOffset(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getSegments(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
- "test_getSegmentsChars(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_TextLayout)",
-};
-
-static boolean isExcluded(String name) {
- for (int i = 0; i < excludeTests.length; i++) {
- if (name.equals(excludeTests[i])) return true;
- }
- return false;
-}
-
-public static void main(String[] args) {
- TestRunner.run(suite());
- System.out.println("\nExcluded Tests: " + excludeTests.length);
-}
-public static Test suite() {
- TestSuite fullSuite = (TestSuite)AllTests.suite();
- TestSuite filteredSuite = new TestSuite();
- for (int i = 0; i < fullSuite.testCount(); i++) {
- Test candidateTest = fullSuite.testAt(i);
- if (candidateTest instanceof TestSuite) {
- TestSuite suite = (TestSuite)candidateTest;
- for (int j = 0; j < suite.testCount(); j++) {
- Test test = suite.testAt(j);
- if (!isExcluded(test.toString())) filteredSuite.addTest(test);
- }
- }
- }
- return filteredSuite;
-}
-}
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllMotifTests.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllMotifTests.java
deleted file mode 100644
index dabd4934b2..0000000000
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllMotifTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.junit;
-
-
-import junit.framework.*;
-import junit.textui.*;
-
-/**
- * Suite for running all SWT test cases.
- */
-public class AllMotifTests extends TestSuite {
-
-/**
- * Tests not run because they consistently fail
- */
-static String[] excludeTests = {
- "test_sleep(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Display)",
- "test_setBackgroundLorg_eclipse_swt_graphics_Color(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Image)",
- "test_ConstructorLorg_eclipse_swt_graphics_Device$Lorg_eclipse_swt_graphics_FontData(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Font)",
- "test_getFontData(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Font)",
- "test_getBoundsI(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TableItem)",
- "test_getBoundsI(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TreeItem)",
- "test_setMaximizedZ(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Shell)",
- "test_getLineIndex(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
- "test_getLinePixel(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
- "test_paste(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText)",
-};
-
-static boolean isExcluded(String name) {
- for (int i = 0; i < excludeTests.length; i++) {
- if (name.equals(excludeTests[i])) return true;
- }
- return false;
-}
-
-public static void main(String[] args) {
- TestRunner.run(suite());
- System.out.println("\nExcluded Tests: " + excludeTests.length);
-}
-public static Test suite() {
- TestSuite fullSuite = (TestSuite)AllTests.suite();
- TestSuite filteredSuite = new TestSuite();
- for (int i = 0; i < fullSuite.testCount(); i++) {
- Test candidateTest = fullSuite.testAt(i);
- if (candidateTest instanceof TestSuite) {
- TestSuite suite = (TestSuite)candidateTest;
- for (int j = 0; j < suite.testCount(); j++) {
- Test test = suite.testAt(j);
- if (!isExcluded(test.toString())) filteredSuite.addTest(test);
- }
- }
- }
- return filteredSuite;
-}
-}
diff --git a/tests/org.eclipse.swt.tests/test.xml b/tests/org.eclipse.swt.tests/test.xml
index 5d3bdd40d9..e902711d45 100644
--- a/tests/org.eclipse.swt.tests/test.xml
+++ b/tests/org.eclipse.swt.tests/test.xml
@@ -33,9 +33,6 @@
<condition property="class-tests" value="org.eclipse.swt.tests.junit.AllCocoaTests">
<equals arg1="${ws}" arg2="cocoa"/>
</condition>
- <condition property="class-tests" value="org.eclipse.swt.tests.junit.AllCarbonTests">
- <equals arg1="${ws}" arg2="carbon"/>
- </condition>
<condition property="class-tests" value="org.eclipse.swt.tests.junit.AllTests">
<equals arg1="${os}" arg2="win32"/>
</condition>

Back to the top