Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2018-01-31 16:04:41 +0000
committerLeo Ufimtsev2018-01-31 17:17:59 +0000
commit8c70437f46ff360a2bedfe48f3534f77798e64c7 (patch)
tree2579099205d218358b1eb259fa44a11edad1191c /tests/org.eclipse.swt.tests
parent4149c41bcd4a978308e81f6fdb3df6762786a1d4 (diff)
downloadeclipse.platform.swt-8c70437f46ff360a2bedfe48f3534f77798e64c7.tar.gz
eclipse.platform.swt-8c70437f46ff360a2bedfe48f3534f77798e64c7.tar.xz
eclipse.platform.swt-8c70437f46ff360a2bedfe48f3534f77798e64c7.zip
Bug 530567 – Move BugSnippets into separate package and exclude from
builds. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=530567 Change-Id: I8cde9c76bf39ef8c1aa3e303012994e9c1473241 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Diffstat (limited to 'tests/org.eclipse.swt.tests')
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/BugTemplate.java29
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug304893_CCombo_read_only_combo_text_selection.java (renamed from tests/org.eclipse.swt.tests/BugSnippets/Bug304893_CCombo_read_only_combo_text_selection.java)16
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug497705_BrowserDragDetect.java (renamed from tests/org.eclipse.swt.tests/BugSnippets/Bug497705_BrowserDragDetect.java)16
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug500475_StyledText_NPE_on_selection_drag.java (renamed from tests/org.eclipse.swt.tests/BugSnippets/Bug500475_StyledText_NPE_on_selection_drag.java)16
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug528251_CTabFolder_nested_highlighting.java (renamed from tests/org.eclipse.swt.tests/BugSnippets/Bug528251_CTabFolder_nested_highlighting.java)16
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug528415_CTabFolder_tabs_are_painted_wrong.java (renamed from tests/org.eclipse.swt.tests/BugSnippets/Bug528415_CTabFolder_tabs_are_painted_wrong.java)16
-rw-r--r--tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/BugTemplate.java45
-rw-r--r--tests/org.eclipse.swt.tests/build.properties9
8 files changed, 130 insertions, 33 deletions
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/BugTemplate.java b/tests/org.eclipse.swt.tests/BugSnippets/BugTemplate.java
deleted file mode 100644
index 7249499420..0000000000
--- a/tests/org.eclipse.swt.tests/BugSnippets/BugTemplate.java
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-
-
-/**
- * Description:
- * Steps to reproduce:
- * Expected results:
- * Actual results:
- */
-public class BugTemplate {
-
- public static void main (String [] args) {
- Display display = new Display ();
- final Shell shell = new Shell (display);
- shell.setLayout(new FillLayout());
-
-
-
- shell.open ();
- while (!shell.isDisposed ()) {
- if (!display.readAndDispatch ()) display.sleep ();
- }
- display.dispose ();
- }
-}
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/Bug304893_CCombo_read_only_combo_text_selection.java b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug304893_CCombo_read_only_combo_text_selection.java
index 385cb608a4..f8fadb9652 100644
--- a/tests/org.eclipse.swt.tests/BugSnippets/Bug304893_CCombo_read_only_combo_text_selection.java
+++ b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug304893_CCombo_read_only_combo_text_selection.java
@@ -1,3 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.swt.tests.manual;
import org.eclipse.swt.SWT;
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/Bug497705_BrowserDragDetect.java b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug497705_BrowserDragDetect.java
index 1af84a4046..fbc1ca2615 100644
--- a/tests/org.eclipse.swt.tests/BugSnippets/Bug497705_BrowserDragDetect.java
+++ b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug497705_BrowserDragDetect.java
@@ -1,3 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.swt.tests.manual;
import org.eclipse.swt.SWT;
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/Bug500475_StyledText_NPE_on_selection_drag.java b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug500475_StyledText_NPE_on_selection_drag.java
index 11d329b52e..8fe3e4b5c8 100644
--- a/tests/org.eclipse.swt.tests/BugSnippets/Bug500475_StyledText_NPE_on_selection_drag.java
+++ b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug500475_StyledText_NPE_on_selection_drag.java
@@ -1,3 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.swt.tests.manual;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/Bug528251_CTabFolder_nested_highlighting.java b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug528251_CTabFolder_nested_highlighting.java
index c081b5dd65..972275ff05 100644
--- a/tests/org.eclipse.swt.tests/BugSnippets/Bug528251_CTabFolder_nested_highlighting.java
+++ b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug528251_CTabFolder_nested_highlighting.java
@@ -1,3 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.swt.tests.manual;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/Bug528415_CTabFolder_tabs_are_painted_wrong.java b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug528415_CTabFolder_tabs_are_painted_wrong.java
index 2d346bca84..5cd8f7cdab 100644
--- a/tests/org.eclipse.swt.tests/BugSnippets/Bug528415_CTabFolder_tabs_are_painted_wrong.java
+++ b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/Bug528415_CTabFolder_tabs_are_painted_wrong.java
@@ -1,3 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.swt.tests.manual;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
diff --git a/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/BugTemplate.java b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/BugTemplate.java
new file mode 100644
index 0000000000..02093ed758
--- /dev/null
+++ b/tests/org.eclipse.swt.tests/BugSnippets/org/eclipse/swt/tests/manual/BugTemplate.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.swt.tests.manual;
+
+
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+
+
+/**
+ * Description:
+ * Steps to reproduce:
+ * Expected results:
+ * Actual results:
+ */
+public class BugTemplate {
+
+ public static void main (String [] args) {
+ Display display = new Display ();
+ final Shell shell = new Shell (display);
+ shell.setLayout(new FillLayout());
+
+
+
+ shell.open ();
+ while (!shell.isDisposed ()) {
+ if (!display.readAndDispatch ()) display.sleep ();
+ }
+ display.dispose ();
+ }
+}
diff --git a/tests/org.eclipse.swt.tests/build.properties b/tests/org.eclipse.swt.tests/build.properties
index e40bdc50cc..63d2e1bef7 100644
--- a/tests/org.eclipse.swt.tests/build.properties
+++ b/tests/org.eclipse.swt.tests/build.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
+# Copyright (c) 2000, 2018 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
@@ -9,8 +9,9 @@
# IBM Corporation - initial API and implementation
###############################################################################
source.. = JUnit Tests/,\
- data/,\
- BugSnippets/
+ data/
+
+src.excludes = BugSnippets/
bin.includes = .,\
test.xml,\
@@ -19,4 +20,4 @@ bin.includes = .,\
data/,\
META-INF/
-#Bug 406855 - org.eclipse.swt.tests needs to be "touched" according to comparator log
+bin.excludes = BugSnippets/ \ No newline at end of file

Back to the top